[FFmpeg-devel] [PATCH v3 3/3] ffmpeg: unref hw_frames_ctx on cleanup

Timo Rothenpieler timo at rothenpieler.org
Tue Jun 7 18:25:46 CEST 2016


---
 ffmpeg.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ffmpeg.c b/ffmpeg.c
index 652774f..45c19fc 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -550,6 +550,7 @@ static void ffmpeg_cleanup(int ret)
         av_frame_free(&ist->sub2video.frame);
         av_freep(&ist->filters);
         av_freep(&ist->hwaccel_device);
+        av_buffer_unref(&ist->hw_frames_ctx);
 
         avcodec_free_context(&ist->dec_ctx);
 
-- 
2.8.3



More information about the ffmpeg-devel mailing list