From 505d6ed4756a68707c26e416646228d5ed31c0f5 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sun, 14 Feb 2021 18:54:59 +0100 Subject: [PATCH] avcodec/apedec: export bits_per_raw_sample Fixes #4717 --- libavcodec/apedec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/apedec.c b/libavcodec/apedec.c index 388d851d03..e0c6b6bb8b 100644 --- a/libavcodec/apedec.c +++ b/libavcodec/apedec.c @@ -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: