vf_yadif: accept input with several frames available.

Fixes ticket #1040.
This commit is contained in:
Nicolas George 2012-03-07 17:34:28 +01:00
parent c088b7f389
commit 1ea3b657d6

View File

@ -315,7 +315,7 @@ static int poll_frame(AVFilterLink *link)
val = avfilter_poll_frame(link->src->inputs[0]);
if (val==1 && !yadif->next) { //FIXME change API to not requre this red tape
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]);