[FFmpeg-devel] [PATCH 1/2] lavfi/buffersrc: add AV_BUFFERSRC_FLAG_PUSH.
Nicolas George
nicolas.george at normalesup.org
Sun Aug 19 18:35:58 CEST 2012
Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
libavfilter/buffersrc.c | 4 ++++
libavfilter/buffersrc.h | 5 +++++
libavfilter/version.h | 4 ++--
3 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c
index 1b46b5b..a12b928 100644
--- a/libavfilter/buffersrc.c
+++ b/libavfilter/buffersrc.c
@@ -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;
}
diff --git a/libavfilter/buffersrc.h b/libavfilter/buffersrc.h
index a23e48f..d253161 100644
--- a/libavfilter/buffersrc.h
+++ b/libavfilter/buffersrc.h
@@ -40,6 +40,11 @@ enum {
*/
AV_BUFFERSRC_FLAG_NO_COPY = 2,
+ /**
+ * Immediately push the frame to the output.
+ */
+ AV_BUFFERSRC_FLAG_PUSH = 4,
+
};
/**
diff --git a/libavfilter/version.h b/libavfilter/version.h
index 8fd5b0c..db415d9 100644
--- a/libavfilter/version.h
+++ b/libavfilter/version.h
@@ -29,8 +29,8 @@
#include "libavutil/avutil.h"
#define LIBAVFILTER_VERSION_MAJOR 3
-#define LIBAVFILTER_VERSION_MINOR 11
-#define LIBAVFILTER_VERSION_MICRO 101
+#define LIBAVFILTER_VERSION_MINOR 12
+#define LIBAVFILTER_VERSION_MICRO 100
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
LIBAVFILTER_VERSION_MINOR, \
--
1.7.10.4
More information about the ffmpeg-devel
mailing list