summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-02-02 17:48:17 +0100
committerKevin Mitchell <kevmitch@gmail.com>2018-02-03 05:01:31 -0800
commitc1b15ae437f70226ebf2d57f02467dbb8a80c256 (patch)
treebd6362dddcd21ee633d6e08308a8e1cc2a26fb39
parent9224ae4fffdf6366131c34c4f14a0bc90d0bc2f4 (diff)
downloadmpv-c1b15ae437f70226ebf2d57f02467dbb8a80c256.tar.bz2
mpv-c1b15ae437f70226ebf2d57f02467dbb8a80c256.tar.xz
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.
-rw-r--r--video/filter/vf_vapoursynth.c1
1 files changed, 1 insertions, 0 deletions
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;
}
}