mirror of https://git.ffmpeg.org/ffmpeg.git
c06d3d2404
An AVFormatContext leaks on errors that happen before it is attached to its permanent place (an InputFile). Fix this by attaching it earlier. Given that it is not documented that avformat_close_input() is usable with an AVFormatContext that has only been allocated with avformat_alloc_context() and not opened with avformat_open_input(), one error path before avformat_open_input() had to be treated specially: It uses avformat_free_context(). Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> |
||
---|---|---|
.. | ||
Makefile | ||
cmdutils.c | ||
cmdutils.h | ||
ffmpeg.c | ||
ffmpeg.h | ||
ffmpeg_dec.c | ||
ffmpeg_demux.c | ||
ffmpeg_enc.c | ||
ffmpeg_filter.c | ||
ffmpeg_hw.c | ||
ffmpeg_mux.c | ||
ffmpeg_mux.h | ||
ffmpeg_mux_init.c | ||
ffmpeg_opt.c | ||
ffplay.c | ||
ffprobe.c | ||
fftools.manifest | ||
fftoolsres.rc | ||
fopen_utf8.h | ||
objpool.c | ||
objpool.h | ||
opt_common.c | ||
opt_common.h | ||
sync_queue.c | ||
sync_queue.h | ||
thread_queue.c | ||
thread_queue.h |