lavfi: cleanup avfilter_get_audio_buffer() and pals.
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Tue, 1 Feb 2011 11:34:23 +0000 (12:34 +0100)
committerAnton Khirnov <anton@khirnov.net>
Wed, 9 May 2012 18:26:19 +0000 (20:26 +0200)
commite727bca392995e4fec0104b7f75f89a66618c120
tree87795d9f2a31f7fc1a1dbd16a74827de5b6af3bf
parentc8b4a3999bc7f3732a537cdec6475918a65d6e78
lavfi: cleanup avfilter_get_audio_buffer() and pals.

Remove AVFilterBufferRefAudioProps.size, and use nb_samples in its place
everywhere.
This is required as the size in the audio buffer may be aligned, so it
may not contain a well defined number of samples.

Also remove the useless planar parameter, which can be deduced from the
sample format.

This is technically an API and ABI break, but since the audio part of
lavfi is not usable now, this should not be a problem in practice.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavfilter/avfilter.c
libavfilter/avfilter.h
libavfilter/defaults.c