]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/alac.c
ra288dec: set channel layout
[ffmpeg] / libavcodec / alac.c
index 61d2e70b4f7ce97303423fca114ae62b9f0bc039..80f6863105755f58abb27e2a5ec4799bded24f1b 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");
@@ -605,7 +606,7 @@ static av_cold int alac_decode_init(AVCodecContext * avctx)
 AVCodec ff_alac_decoder = {
     .name           = "alac",
     .type           = AVMEDIA_TYPE_AUDIO,
-    .id             = CODEC_ID_ALAC,
+    .id             = AV_CODEC_ID_ALAC,
     .priv_data_size = sizeof(ALACContext),
     .init           = alac_decode_init,
     .close          = alac_decode_close,