From c1b15ae437f70226ebf2d57f02467dbb8a80c256 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 2 Feb 2018 17:48:17 +0100 Subject: vf_vapoursynth: fix obscure/impossible leak Unknown frames were not freed properly. Although this doesn't really happen anyway, because we're never going to feed audio frames to a video filter chain. Since it's theoretically possible, and all other filters handle this consistently, fix it anyway. --- video/filter/vf_vapoursynth.c | 1 + 1 file changed, 1 insertion(+) diff --git a/video/filter/vf_vapoursynth.c b/video/filter/vf_vapoursynth.c index 6b4ec87ad2..d58433a4b5 100644 --- a/video/filter/vf_vapoursynth.c +++ b/video/filter/vf_vapoursynth.c @@ -379,6 +379,7 @@ static void vf_vapoursynth_process(struct mp_filter *f) pthread_cond_broadcast(&p->wakeup); } else if (frame.type != MP_FRAME_NONE) { MP_ERR(p, "discarding unknown frame type\n"); + mp_frame_unref(&frame); goto done; } } -- cgit v1.2.3