mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-12 02:04:58 +00:00
yadif: fixed missing error handling for poll_frame.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
3be0c86b97
commit
4d84c7ded6
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user