[FFmpeg-devel] [PATCH] examples/filtering_audio: get rid of AVABufferSinkParams

Clément Bœsch ubitux at gmail.com
Wed Apr 17 11:25:21 CEST 2013


On Wed, Apr 17, 2013 at 11:20:11AM +0200, Nicolas George wrote:
> L'octidi 28 germinal, an CCXXI, Clement Boesch a écrit :
> > That may be unrelated, but why don't we just insert a aformat filter at
> > the end of the filtergraph to request a specific configuration?
> 
> The aformat filter requires its options as strings. This is easy in this
> particular case, but for programmatic use this is far from the best choice.
> 
> Add binary options to the aformat filter is probably a worthy TODO item,
> assuming Anton's API changes allow it somehow.
> 

Or we could just add and use the init_dict()? So you declare a
dictionnary, set the 3 output settings you need with av_dict_set() and use
it with avfilter_init_dict()

It should also simplify the buffersink code and reduce diff with libav.

-- 
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-devel/attachments/20130417/9cf43e92/attachment.asc>


More information about the ffmpeg-devel mailing list