summaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-08-19 18:08:24 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-08-20 23:40:16 +0200
commit5bbe4142d151fd936439518a3970bb5391511070 (patch)
treed45af384ebc5ac62b83faa933bd5b518b3917d5e /libavfilter
parent3899e4995538a002c49e1e9d204832a3388588c8 (diff)
downloadffmpeg-streaming-5bbe4142d151fd936439518a3970bb5391511070.zip
ffmpeg-streaming-5bbe4142d151fd936439518a3970bb5391511070.tar.gz
lavfi/buffersrc: add AV_BUFFERSRC_FLAG_PUSH.
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/buffersrc.c4
-rw-r--r--libavfilter/buffersrc.h5
-rw-r--r--libavfilter/version.h2
3 files changed, 10 insertions, 1 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 db415d9..a008d94 100644
--- a/libavfilter/version.h
+++ b/libavfilter/version.h
@@ -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, \
OpenPOWER on IntegriCloud