[FFmpeg-devel] [PATCH] vf_libvmaf: Fix memory leak
Kyle Swanson
k at ylo.ph
Sun Apr 1 07:18:36 EEST 2018
Hi,
On Sun, Mar 25, 2018 at 9:44 AM, enctac <enctac-at-yahoo.co.jp at ffmpeg.org>
wrote:
> Fixes ticket #6967
> ---
> 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);
> \
> --
> 2.16.2
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
Tested and pushed. Thanks!
Kyle
More information about the ffmpeg-devel
mailing list