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.
This commit is contained in:
wm4 2018-02-02 17:48:17 +01:00 committed by Kevin Mitchell
parent 9224ae4fff
commit c1b15ae437
No known key found for this signature in database
GPG Key ID: 559A34B46A917232
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}
}