lavfi/buffersrc: add AV_BUFFERSRC_FLAG_PUSH.
authorNicolas George <nicolas.george@normalesup.org>
Sun, 19 Aug 2012 16:08:24 +0000 (18:08 +0200)
committerNicolas George <nicolas.george@normalesup.org>
Mon, 20 Aug 2012 21:40:16 +0000 (23:40 +0200)
libavfilter/buffersrc.c
libavfilter/buffersrc.h
libavfilter/version.h

index 1b46b5b..a12b928 100644 (file)
@@ -148,6 +148,10 @@ int av_buffersrc_add_ref(AVFilterContext *s, AVFilterBufferRef *buf, int flags)
         c->warning_limit *= 10;
     }
 
+    if ((flags & AV_BUFFERSRC_FLAG_PUSH))
+        if ((ret = s->output_pads[0].request_frame(s->outputs[0])) < 0)
+            return ret;
+
     return 0;
 }
 
index a23e48f..d253161 100644 (file)
@@ -40,6 +40,11 @@ enum {
      */
     AV_BUFFERSRC_FLAG_NO_COPY = 2,
 
+    /**
+     * Immediately push the frame to the output.
+     */
+    AV_BUFFERSRC_FLAG_PUSH = 4,
+
 };
 
 /**
index db415d9..a008d94 100644 (file)
@@ -29,7 +29,7 @@
 #include "libavutil/avutil.h"
 
 #define LIBAVFILTER_VERSION_MAJOR  3
-#define LIBAVFILTER_VERSION_MINOR  12
+#define LIBAVFILTER_VERSION_MINOR  13
 #define LIBAVFILTER_VERSION_MICRO 100
 
 #define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \