[Libav-user] Multiple avio_open_dyn_buf() / avio_close_dyn_buf() paired issue
Matthew Einhorn
moiein2000 at gmail.com
Thu Sep 29 21:03:16 CEST 2011
On Thu, Sep 29, 2011 at 2:58 PM, env01 <Hoang.Nguyen at envisioninc.com> wrote:
>
> Denis Gottardello wrote:
> >
> > DynBuffer *d= (DynBuffer*)pFormatCtx->pb->opaque;
> > QByteArray QBAByteIn((const char*)d->buffer, d->pos);
> > QFMPGFileOut.write(QBAByteIn);
> > 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.
Why not file a bug report? https://ffmpeg.org/trac/ffmpeg
More information about the Libav-user
mailing list