lavfi: prefer nb_samples over size in AVFilterBufferRefAudioProps
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Tue, 1 Feb 2011 11:34:23 +0000 (12:34 +0100)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Mon, 6 Jun 2011 08:12:49 +0000 (10:12 +0200)
commit95a0242642e8ee345f6545ea7f9b042989272729
treed1a6b279f5613c46a1b676ca3ba71345f23eb365
parent0bc2cca12f671010eac171bc22049320a7cd61a3
lavfi: prefer nb_samples over size in AVFilterBufferRefAudioProps

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.
doc/APIchanges
libavfilter/avfilter.c
libavfilter/avfilter.h
libavfilter/defaults.c