[Libav-user] Multiple avio_open_dyn_buf() / avio_close_dyn_buf() paired issue
Hoang.Nguyen at envisioninc.com
Thu Sep 29 20:58:20 CEST 2011
Denis Gottardello wrote:
> DynBuffer *d= (DynBuffer*)pFormatCtx->pb->opaque;
> QByteArray QBAByteIn((const char*)d->buffer, d->pos);
> d->pos= d->size= 0;
Thank you for the response but under the hood my code does the same thing as
yours. Your lines 2-3 is the same as my ostream.write() and setting pos =
size = 0 is being done by the call to avio_open_dyn_buf().
So this is still an issue for me. I need to be able to limit the amount of
memory being used and making multiple calls to
avio_open_dyn_buf()/avio_close_dyn_buf() seem to corrupt the mp4 output.
View this message in context: http://libav-users.943685.n4.nabble.com/Multiple-avio-open-dyn-buf-avio-close-dyn-buf-paired-issue-tp3849089p3857219.html
Sent from the libav-users mailing list archive at Nabble.com.
More information about the Libav-user