I'm writing an application in Qt that permits the video streaming from a byte array. As video output component I'm using QtAV (http://www.qtav.org/). In my case the input of this component is a QIODevice (QBuffer) where has a QByteArray with my data. I will put during the streaming the data inside the QByteArray, but I don't know how to delete the data that I have yet read. My problem is that after a little time, the dimension of QByteArray is very huge and I don't know how I can reduce the memory allocated.
Thank you
Angelo