Commit 4d84c7de authored by Robert Nagy's avatar Robert Nagy Committed by Michael Niedermayer

yadif: fixed missing error handling for poll_frame.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3be0c86b
......@@ -314,11 +314,15 @@ static int poll_frame(AVFilterLink *link)
return 1;
val = avfilter_poll_frame(link->src->inputs[0]);
if (val <= 0)
return val;
if (val >= 1 && !yadif->next) { //FIXME change API to not requre this red tape
if ((ret = avfilter_request_frame(link->src->inputs[0])) < 0)
return ret;
val = avfilter_poll_frame(link->src->inputs[0]);
if (val <= 0)
return val;
}
assert(yadif->next || !val);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment