mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
avcodec/osq: fix 20bit decoding and remove invalid modes
This commit is contained in:
parent
0adaa90d89
commit
8cb2c6a71e
1 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue