summaryrefslogtreecommitdiff
path: root/libavcodec/aacdec.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/aacdec.c
parentc5ee740745596941b84b738cc528ec85b0e6f0a3 (diff)
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/aacdec.c')
-rw-r--r--libavcodec/aacdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c
index 69aacb86d6..26ce204257 100644
--- a/libavcodec/aacdec.c
+++ b/libavcodec/aacdec.c
@@ -2177,7 +2177,7 @@ static int aac_decode_frame_int(AVCodecContext *avctx, void *data,
}
data_size_tmp = samples * avctx->channels *
- (av_get_bits_per_sample_fmt(avctx->sample_fmt) / 8);
+ av_get_bytes_per_sample(avctx->sample_fmt);
if (*data_size < data_size_tmp) {
av_log(avctx, AV_LOG_ERROR,
"Output buffer too small (%d) or trying to output too many samples (%d) for this frame.\n",