aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/resample.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-06-07 13:40:22 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-06-20 18:56:06 -0400
commite6c52cee541ba23a7aec525f72dff73c188dad06 (patch)
tree5ae73425c73262bf580626118c0174f808806aad /libavcodec/resample.c
parentc5ee740745596941b84b738cc528ec85b0e6f0a3 (diff)
downloadffmpeg-e6c52cee541ba23a7aec525f72dff73c188dad06.tar.gz
Replace usages of av_get_bits_per_sample_fmt() with av_get_bytes_per_sample().
av_get_bits_per_sample_fmt() is deprecated.
Diffstat (limited to 'libavcodec/resample.c')
-rw-r--r--libavcodec/resample.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/resample.c b/libavcodec/resample.c
index 0bebe1ab88..04bbbf07e4 100644
--- a/libavcodec/resample.c
+++ b/libavcodec/resample.c
@@ -187,8 +187,8 @@ ReSampleContext *av_audio_resample_init(int output_channels, int input_channels,
s->sample_fmt[0] = sample_fmt_in;
s->sample_fmt[1] = sample_fmt_out;
- s->sample_size[0] = av_get_bits_per_sample_fmt(s->sample_fmt[0]) >> 3;
- s->sample_size[1] = av_get_bits_per_sample_fmt(s->sample_fmt[1]) >> 3;
+ s->sample_size[0] = av_get_bytes_per_sample(s->sample_fmt[0]);
+ s->sample_size[1] = av_get_bytes_per_sample(s->sample_fmt[1]);
if (s->sample_fmt[0] != AV_SAMPLE_FMT_S16) {
if (!(s->convert_ctx[0] = av_audio_convert_alloc(AV_SAMPLE_FMT_S16, 1,