aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2023-09-05 00:03:18 +0200
committerPaul B Mahol <onemda@gmail.com>2023-09-05 00:10:53 +0200
commit8cb2c6a71ebb85f2715287c7571ac3a157d2989d (patch)
tree9741be3de5e6cb1a16d5d7e59dc273127ab52c78 /libavcodec
parent0adaa90d89114dc86dbc5704ce31ded5b6750d13 (diff)
downloadffmpeg-8cb2c6a71ebb85f2715287c7571ac3a157d2989d.tar.gz
avcodec/osq: fix 20bit decoding and remove invalid modes
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/osq.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/osq.c b/libavcodec/osq.c
index df9099f20f..e2a84657fb 100644
--- a/libavcodec/osq.c
+++ b/libavcodec/osq.c
@@ -103,9 +103,7 @@ static av_cold int osq_init(AVCodecContext *avctx)
case 8: avctx->sample_fmt = AV_SAMPLE_FMT_U8P; break;
case 16: avctx->sample_fmt = AV_SAMPLE_FMT_S16P; break;
case 20:
- case 24:
- case 28:
- case 32: s->factor = 1 << (32 - avctx->extradata[2]);
+ case 24: s->factor = 256;
avctx->sample_fmt = AV_SAMPLE_FMT_S32P; break;
default: return AVERROR_INVALIDDATA;
}