[FFmpeg-devel] [PATCH] avformat: rename AVOutputFormat.deinit to AVOutputFormat.close
James Almer
jamrial at gmail.com
Mon Nov 20 23:11:29 EET 2017
On 11/20/2017 5:45 PM, Nicolas George wrote:
> James Almer (2017-11-20):
>> This is more in line with other callbacks, like AVCodec.close and
>> AVInputFormat.read_close
>
> Unless I am mistaken, unlike the "close" callbacks, this one is always
> called, including when init fails.
>
> Regards,
The three behave in different ways. AVCodec.close is called always from
avcodec_close() but from avcodec_open2() only if
FF_CODEC_CAP_INIT_CLEANUP is set, whereas AVInputFormat.read_close is
called always but exclusively from avformat_close_input().
More information about the ffmpeg-devel
mailing list