[Libav-user] Multiple avio_open_dyn_buf() / avio_close_dyn_buf() paired issue
Denis
info at denisgottardello.it
Thu Oct 6 20:35:47 CEST 2011
In data giovedì 29 settembre 2011 20:58:20, env01 ha scritto:
> 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.
>
Have you tried the latest ffmpeg version?
--
www.denisgottardello.it
Skype: mrdebug
Videosurveillance and home automation!
http://www.denisgottardello.it/DomusBoss/DomusBossIndice.php
More information about the Libav-user
mailing list