vf_libvmaf: Fix memory leak
authorenctac <enctac-at-yahoo.co.jp@ffmpeg.org>
Sun, 25 Mar 2018 16:44:49 +0000 (01:44 +0900)
committerKyle Swanson <kswanson@netflix.com>
Sun, 1 Apr 2018 03:58:09 +0000 (20:58 -0700)
Fixes ticket #6967

libavfilter/vf_libvmaf.c

index dfe474c..42c6b66 100644 (file)
@@ -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);                                              \