[FFmpeg-devel] [PATCH] lavfi: create reference in filters which needs to access the ref later

Stefano Sabatini stefasab at gmail.com
Wed Apr 25 13:52:13 CEST 2012


On date Wednesday 2012-04-25 00:44:53 +0200, Nicolas George encoded:
> Le septidi 7 floréal, an CCXX, Stefano Sabatini a écrit :
> > +static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref)
> > +{
> > +    avfilter_start_frame(inlink->dst->outputs[0], avfilter_ref_buffer(picref, ~0));
> > +}
> 
> > +static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref)
> > +{
> > +    avfilter_start_frame(inlink->dst->outputs[0], avfilter_ref_buffer(picref, ~0));
> > +}
> 
> > +static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref)
> > +{
> > +    avfilter_start_frame(inlink->dst->outputs[0], avfilter_ref_buffer(picref, ~0));
> 
> > +static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref)
> > +{
> > +    avfilter_start_frame(inlink->dst->outputs[0], avfilter_ref_buffer(picref, ~0));
> > +}
> 
> That could be a common function in defaults.c

I thought about that but I don't want to add more and more wrapper
functions and make the API even more opaque (which is IMO one of the
problems when dealing with libavfilter). That said what name would you
suggest?
-- 
FFmpeg = Fundamentalist and Forgiving Merciful Patchable Exploitable Ghost


More information about the ffmpeg-devel mailing list