Commit 5bbe4142 authored by Nicolas George's avatar Nicolas George

lavfi/buffersrc: add AV_BUFFERSRC_FLAG_PUSH.

parent 3899e499
...@@ -148,6 +148,10 @@ int av_buffersrc_add_ref(AVFilterContext *s, AVFilterBufferRef *buf, int flags) ...@@ -148,6 +148,10 @@ int av_buffersrc_add_ref(AVFilterContext *s, AVFilterBufferRef *buf, int flags)
c->warning_limit *= 10; 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; return 0;
} }
......
...@@ -40,6 +40,11 @@ enum { ...@@ -40,6 +40,11 @@ enum {
*/ */
AV_BUFFERSRC_FLAG_NO_COPY = 2, AV_BUFFERSRC_FLAG_NO_COPY = 2,
/**
* Immediately push the frame to the output.
*/
AV_BUFFERSRC_FLAG_PUSH = 4,
}; };
/** /**
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include "libavutil/avutil.h" #include "libavutil/avutil.h"
#define LIBAVFILTER_VERSION_MAJOR 3 #define LIBAVFILTER_VERSION_MAJOR 3
#define LIBAVFILTER_VERSION_MINOR 12 #define LIBAVFILTER_VERSION_MINOR 13
#define LIBAVFILTER_VERSION_MICRO 100 #define LIBAVFILTER_VERSION_MICRO 100
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \ #define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment