[FFmpeg-cvslog] vf_libvmaf: Fix memory leak

enctac git at videolan.org
Sun Apr 1 07:15:04 EEST 2018


ffmpeg | branch: master | enctac <enctac-at-yahoo.co.jp at ffmpeg.org> | Mon Mar 26 01:44:49 2018 +0900| [be502ec6cde004e1fa05643282939bf3a1507922] | committer: Kyle Swanson

vf_libvmaf: Fix memory leak

Fixes ticket #6967

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=be502ec6cde004e1fa05643282939bf3a1507922
---

 libavfilter/vf_libvmaf.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavfilter/vf_libvmaf.c b/libavfilter/vf_libvmaf.c
index dfe474c40c..42c6b66b69 100644
--- a/libavfilter/vf_libvmaf.c
+++ b/libavfilter/vf_libvmaf.c
@@ -130,6 +130,8 @@ FRAMESYNC_DEFINE_CLASS(libvmaf, LIBVMAFContext, fs);
     \
     ret = !s->frame_set;                                                        \
     \
+    av_frame_unref(s->gref);                                                    \
+    av_frame_unref(s->gmain);                                                   \
     s->frame_set = 0;                                                           \
     \
     pthread_cond_signal(&s->cond);                                              \



More information about the ffmpeg-cvslog mailing list