avio_open_dyn_buf()/avio_close_dyn_buf(), limit the memory usage
|Reported by:||mrdebug||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
In my program the functions "avio_open_dyn_buf() / avio_close_dyn_buf()" work fine. On "avio_close_dyn_buf()" I can save the buffer in a file and the file can be played correctly.
In order to limit the memory usage, I have inserted in my code this:
that's executed many times before "avio_close_dyn_buf()" function.
This works only with codecs CODEC_ID_THEORA and
CODEC_ID_MPEG4 but not with codecs CODEC_ID_VP8 and CODEC_ID_H264.
Is this a bug or is not possible to extract something from the buffer before "avio_close_dyn_buf()"?
See the source code attached.