[FFmpeg-devel] [PATCH 1/2] ffmpeg: unref hw_frames_ctx on cleanup

Timo Rothenpieler timo at rothenpieler.org
Wed Jun 8 15:10:17 CEST 2016


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

diff --git a/ffmpeg.c b/ffmpeg.c
index 7c60075..1d58a5d 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