[FFmpeg-cvslog] lavfi/buffersrc: add AV_BUFFERSRC_FLAG_PUSH.

Clément Bœsch ubitux at gmail.com
Mon Aug 20 23:50:37 CEST 2012


On Mon, Aug 20, 2012 at 11:43:51PM +0200, Nicolas George wrote:
> ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Sun Aug 19 18:08:24 2012 +0200| [5bbe4142d151fd936439518a3970bb5391511070] | committer: Nicolas George
> 
> lavfi/buffersrc: add AV_BUFFERSRC_FLAG_PUSH.
> 
> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5bbe4142d151fd936439518a3970bb5391511070
> ---
> 
>  libavfilter/buffersrc.c |    4 ++++
>  libavfilter/buffersrc.h |    5 +++++
>  libavfilter/version.h   |    2 +-
>  3 files changed, 10 insertions(+), 1 deletion(-)
> 
> 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,
> +

Let's hope the next flag qatar will introduce will have the same
purpose...

[...]

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-cvslog/attachments/20120820/005b3540/attachment.asc>


More information about the ffmpeg-cvslog mailing list