X-Git-Url: http://git.ffmpeg.org/gitweb/ffmpeg.git/blobdiff_plain/b37dfe181cc34ea76155cf449d168c385f32f061..6cbe81999b07862895515fcbdae7bc3a320ca29c:/libavcodec/aacdec.c diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c index 19d3b3678f..cb8760801a 100644 --- a/libavcodec/aacdec.c +++ b/libavcodec/aacdec.c @@ -2179,7 +2179,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",