From 46a86c61940ec8efdfa90b23f05c38ecc1184a34 Mon Sep 17 00:00:00 2001
From: Justin Ruggles <justin.ruggles@gmail.com>
Date: Sun, 21 Oct 2012 19:18:07 -0400
Subject: [PATCH] alacdec: set bits_per_raw_sample

---
 libavcodec/alac.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/alac.c b/libavcodec/alac.c
index 11f90fc4a55..80f68631057 100644
--- a/libavcodec/alac.c
+++ b/libavcodec/alac.c
@@ -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");
-- 
GitLab