From: Michael Niedermayer Date: Sat, 2 Apr 2011 18:26:39 +0000 (+0200) Subject: yadif: Fix assert() failure X-Git-Tag: v0.7b2~212 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d85e18e6e342bf58f8e13a95f601082e5d70803a;p=platform%2Fupstream%2Flibav.git yadif: Fix assert() failure Signed-off-by: Anton Khirnov --- diff --git a/libavfilter/vf_yadif.c b/libavfilter/vf_yadif.c index 7a488d6..0396fe4 100644 --- a/libavfilter/vf_yadif.c +++ b/libavfilter/vf_yadif.c @@ -274,7 +274,7 @@ static int poll_frame(AVFilterLink *link) return ret; val = avfilter_poll_frame(link->src->inputs[0]); } - assert(yadif->next); + assert(yadif->next || !val); return val * ((yadif->mode&1)+1); }