mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-27 09:52:17 +00:00
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> |
||
---|---|---|
.. | ||
cmdutils.c | ||
cmdutils.h | ||
ffmpeg_dec.c | ||
ffmpeg_demux.c | ||
ffmpeg_enc.c | ||
ffmpeg_filter.c | ||
ffmpeg_hw.c | ||
ffmpeg_mux_init.c | ||
ffmpeg_mux.c | ||
ffmpeg_mux.h | ||
ffmpeg_opt.c | ||
ffmpeg.c | ||
ffmpeg.h | ||
ffplay.c | ||
ffprobe.c | ||
fftools.manifest | ||
fftoolsres.rc | ||
fopen_utf8.h | ||
Makefile | ||
objpool.c | ||
objpool.h | ||
opt_common.c | ||
opt_common.h | ||
sync_queue.c | ||
sync_queue.h | ||
thread_queue.c | ||
thread_queue.h |