Remove usage of deprecated libavcodec/audioconvert.h functions.

Originally committed as revision 25668 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Stefano Sabatini
2010-11-03 20:19:34 +00:00
parent caa7ad5dc6
commit ba7d6e798e
7 changed files with 27 additions and 20 deletions

View File

@@ -20,6 +20,7 @@
*/
#include "libavcore/imgutils.h"
#include "libavcore/samplefmt.h"
#include "libavcodec/audioconvert.h"
#include "avfilter.h"
@@ -109,7 +110,7 @@ AVFilterBufferRef *avfilter_default_get_audio_buffer(AVFilterLink *link, int per
samples->refcount = 1;
samples->free = avfilter_default_free_buffer;
sample_size = av_get_bits_per_sample_format(sample_fmt) >>3;
sample_size = av_get_bits_per_sample_fmt(sample_fmt) >>3;
chans_nb = avcodec_channel_layout_num_channels(channel_layout);
per_channel_size = size/chans_nb;