yadif: Fix assert() failure

Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
Michael Niedermayer 2011-04-02 20:26:39 +02:00 committed by Anton Khirnov
parent f80b381bfd
commit d85e18e6e3
1 changed files with 1 additions and 1 deletions

View File

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