avcodec/apedec: export bits_per_raw_sample

Fixes #4717
This commit is contained in:
Paul B Mahol 2021-02-14 18:54:59 +01:00
parent 5d9f44da46
commit 505d6ed475
1 changed files with 1 additions and 0 deletions

View 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: