[FFmpeg-devel] [PATCH] vf_yadif: accept input with several frames	available.
    Nicolas George 
    nicolas.george at normalesup.org
       
    Wed Mar  7 18:52:57 CET 2012
    
    
  
Fixes ticket #1040.
Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 libavfilter/vf_yadif.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavfilter/vf_yadif.c b/libavfilter/vf_yadif.c
index c9f8705..4ade615 100644
--- a/libavfilter/vf_yadif.c
+++ b/libavfilter/vf_yadif.c
@@ -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]);
-- 
1.7.9.1
    
    
More information about the ffmpeg-devel
mailing list