diff options
author | wm4 <wm4@nowhere> | 2018-02-02 17:48:17 +0100 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2018-02-03 05:01:31 -0800 |
commit | c1b15ae437f70226ebf2d57f02467dbb8a80c256 (patch) | |
tree | bd6362dddcd21ee633d6e08308a8e1cc2a26fb39 /video/filter/vf_vapoursynth.c | |
parent | 9224ae4fffdf6366131c34c4f14a0bc90d0bc2f4 (diff) | |
download | mpv-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.
Diffstat (limited to 'video/filter/vf_vapoursynth.c')
-rw-r--r-- | video/filter/vf_vapoursynth.c | 1 |
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; } } |