avcodec/apedec: export bits_per_raw_sample
authorPaul B Mahol <onemda@gmail.com>
Sun, 14 Feb 2021 17:54:59 +0000 (18:54 +0100)
committerPaul B Mahol <onemda@gmail.com>
Sun, 14 Feb 2021 17:59:28 +0000 (18:59 +0100)
Fixes #4717

libavcodec/apedec.c

index 388d851..e0c6b6b 100644 (file)
@@ -243,6 +243,7 @@ static av_cold int ape_decode_init(AVCodecContext *avctx)
         av_log(avctx, AV_LOG_ERROR, "Only mono and stereo is supported\n");
         return AVERROR(EINVAL);
     }
+    avctx->bits_per_raw_sample =
     s->bps = avctx->bits_per_coded_sample;
     switch (s->bps) {
     case 8: