[FFmpeg-devel] [PATCH 2/2] doc/examples: add audio decoding/filtering example.
ubitux at gmail.com
Tue Feb 21 16:09:30 CET 2012
On Tue, Feb 21, 2012 at 04:59:07PM +0200, Andrey Utkin wrote:
> 2012/2/20 Clément Bœsch <ubitux at gmail.com>:
> > + /* buffer audio sink: to terminate the filter chain. */
> > + abuffersink_params = av_abuffersink_params_alloc();
> > + abuffersink_params->sample_fmts = sample_fmts;
> > + abuffersink_params->channel_layouts = chlayouts;
> > + abuffersink_params->packing_fmts = packing_fmts;
> > + ret = avfilter_graph_create_filter(&buffersink_ctx, buffersink, "out",
> > + NULL, abuffersink_params, filter_graph);
> Looking at
Why do you think this...
...will call this callback?
> i find that abuffersink_params is not treated in any way, and is not
> saved anywhere. Is that right, or i miss sth?
The correct callback is asink_init() in lavfi/sink_buffer.c, where the
opaque pointer is used.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 490 bytes
Desc: not available
More information about the ffmpeg-devel