yadif: Fix assert() failure
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:

committed by
Anton Khirnov

parent
f80b381bfd
commit
d85e18e6e3
@@ -274,7 +274,7 @@ static int poll_frame(AVFilterLink *link)
|
|||||||
return ret;
|
return ret;
|
||||||
val = avfilter_poll_frame(link->src->inputs[0]);
|
val = avfilter_poll_frame(link->src->inputs[0]);
|
||||||
}
|
}
|
||||||
assert(yadif->next);
|
assert(yadif->next || !val);
|
||||||
|
|
||||||
return val * ((yadif->mode&1)+1);
|
return val * ((yadif->mode&1)+1);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user