On Thu, Sep 29, 2011 at 2:58 PM, env01 <[email protected]> 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
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to