alacdec: set bits_per_raw_sample
authorJustin Ruggles <justin.ruggles@gmail.com>
Sun, 21 Oct 2012 23:18:07 +0000 (19:18 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Mon, 22 Oct 2012 03:54:51 +0000 (23:54 -0400)
libavcodec/alac.c

index 11f90fc..80f6863 100644 (file)
@@ -574,6 +574,7 @@ static av_cold int alac_decode_init(AVCodecContext * avctx)
                                    alac->sample_size);
              return AVERROR_PATCHWELCOME;
     }
+    avctx->bits_per_raw_sample = alac->sample_size;
 
     if (alac->channels < 1) {
         av_log(avctx, AV_LOG_WARNING, "Invalid channel count\n");