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 _______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
