Commit 1ea3b657 authored by Nicolas George's avatar Nicolas George

vf_yadif: accept input with several frames available.

Fixes ticket #1040.
parent c088b7f3
...@@ -315,7 +315,7 @@ static int poll_frame(AVFilterLink *link) ...@@ -315,7 +315,7 @@ static int poll_frame(AVFilterLink *link)
val = avfilter_poll_frame(link->src->inputs[0]); 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) if ((ret = avfilter_request_frame(link->src->inputs[0])) < 0)
return ret; return ret;
val = avfilter_poll_frame(link->src->inputs[0]); val = avfilter_poll_frame(link->src->inputs[0]);
......
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