diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-01-16 23:14:51 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-01-17 01:19:43 +0100 |
commit | 7a0361b06f0afbdcface8cab17751ed2c7e81769 (patch) | |
tree | 57254c019b24a675e4950db1f2c0e1dd18608222 /ffmpeg.c | |
parent | dee579ffcd70d4a386e4d2dad6967de3bf2db3ed (diff) | |
download | ffmpeg-7a0361b06f0afbdcface8cab17751ed2c7e81769.tar.gz |
ffmpeg: fix sws_dict leak on error exit
Fixes: 1b79b985cdf860ffa228c00ee5497051/signal_sigsegv_1f99d24_3549_86d92054a79f6ff900fbaf03f8012b32.aif
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -527,6 +527,8 @@ static void ffmpeg_cleanup(int ret) av_freep(&ost->audio_channels_map); ost->audio_channels_mapped = 0; + av_dict_free(&ost->sws_dict); + avcodec_free_context(&ost->enc_ctx); av_freep(&output_streams[i]); |