]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/alac.c
Add a Makefile variable for the old scaler that gets enabled when the new
[ffmpeg] / libavcodec / alac.c
index 9c5f621904752bb451c66c3ee8f81d5e2dfdda64..8cf1ccc69c027c46db339d565eaadf7315bce47b 100644 (file)
@@ -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;