summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/alac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/alac.c b/libavcodec/alac.c
index 9c5f621904..8cf1ccc69c 100644
--- a/libavcodec/alac.c
+++ b/libavcodec/alac.c
@@ -597,7 +597,7 @@ static av_cold int alac_decode_init(AVCodecContext * avctx)
alac->context_initialized = 0;
alac->numchannels = alac->avctx->channels;
- alac->bytespersample = (avctx->bits_per_coded_sample / 8) * alac->numchannels;
+ alac->bytespersample = 2 * alac->numchannels;
avctx->sample_fmt = SAMPLE_FMT_S16;
return 0;