aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/apedec.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2021-02-14 18:54:59 +0100
committerPaul B Mahol <onemda@gmail.com>2021-02-14 18:59:28 +0100
commit505d6ed4756a68707c26e416646228d5ed31c0f5 (patch)
treece38d9bbe6345a9596b971428b5304fee532314b /libavcodec/apedec.c
parent5d9f44da460f781a1604d537d0555b78e29438ba (diff)
downloadffmpeg-505d6ed4756a68707c26e416646228d5ed31c0f5.tar.gz
avcodec/apedec: export bits_per_raw_sample
Fixes #4717
Diffstat (limited to 'libavcodec/apedec.c')
-rw-r--r--libavcodec/apedec.c1
1 files changed, 1 insertions, 0 deletions
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: