[Libav-user] Write header more than once

Michael IV explomaster at gmail.com
Sun Nov 19 14:05:49 EET 2017


Hi. I am trying to reuse already created instances of
AVFormatContext,AVCodecContext
and AVIOContext. My question is related to avformat_write_header() with
parameters.

At the end of the session I usually call  avcodec_parameters_free  to free
internal buffers.

Do I have also to call this method if I want to write header second or
third time to the same AVFormatContext instance?

Second question: is  extradata like SPS PPS  deallocated  as well,when I
call avcodec_parameters_free  ?

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20171119/7b9f55a1/attachment.html>


More information about the Libav-user mailing list