[FFmpeg-cvslog] r12039 - trunk/libavfilter/avfilter.c

vitor subversion
Fri Feb 15 22:40:27 CET 2008


Author: vitor
Date: Fri Feb 15 22:40:26 2008
New Revision: 12039

Log:
Implement poll_frame() method. Fix ffmpeg.c bug with 
vf_fps filter.

Commited in SoC by Vitor Sessak on 2008-02-06 19:55:36


Modified:
   trunk/libavfilter/avfilter.c

Modified: trunk/libavfilter/avfilter.c
==============================================================================
--- trunk/libavfilter/avfilter.c	(original)
+++ trunk/libavfilter/avfilter.c	Fri Feb 15 22:40:26 2008
@@ -185,6 +185,22 @@ int avfilter_request_frame(AVFilterLink 
     else return -1;
 }
 
+int avfilter_poll_frame(AVFilterLink *link)
+{
+    int i, min=INT_MAX;
+
+    if(link_spad(link).poll_frame)
+        return link_spad(link).poll_frame(link);
+    else
+        for (i=0; i<link->src->input_count; i++) {
+            if(!link->src->inputs[i])
+                return -1;
+            min = FFMIN(min, avfilter_poll_frame(link->src->inputs[i]));
+        }
+
+    return min;
+}
+
 /* XXX: should we do the duplicating of the picture ref here, instead of
  * forcing the source filter to do it? */
 void avfilter_start_frame(AVFilterLink *link, AVFilterPicRef *picref)




More information about the ffmpeg-cvslog mailing list