[FFmpeg-devel] [PATCH] lavfi: prefer nb_samples over size in AVFilterBufferRefAudioProps

Stefano Sabatini stefano.sabatini-lala at poste.it
Mon Jun 6 10:33:31 CEST 2011


On date Monday 2011-05-23 05:17:11 +0200, Michael Niedermayer encoded:
> On Mon, May 23, 2011 at 12:14:27AM +0200, Stefano Sabatini wrote:
> > Remove AVFilterBufferRefAudioProps.size, and use nb_samples in
> > avfilter_get_audio_buffer() and avfilter_default_get_audio_buffer() in
> > place of size.
> > 
> > This is required as the size in the audio buffer may be aligned, so it
> > may not contain a well defined number of samples.
> > ---
> >  libavfilter/avfilter.c |   15 ++++++++-------
> >  libavfilter/avfilter.h |   11 +++++------
> >  libavfilter/defaults.c |   11 +++++------
> >  3 files changed, 18 insertions(+), 19 deletions(-)
> 
> sounds ok

Pushed.
-- 
FFmpeg = Faithful and Fanciful Magical Powered Elected Geisha


More information about the ffmpeg-devel mailing list