History

avcodec/osq: fix 20bit decoding and remove invalid modes

Paul B Mahol committed 3 years ago

Commit 8cb2c6a1 parent 0adaa901 file · +1 −3Browse files

Unified · Split

libavcodec/osq.c+1−3
@@ -103,9 +103,7 @@ static av_cold int osq_init(AVCodecContext *avctx) · 102 unmodified lines
103 case 8: avctx->sample_fmt = AV_SAMPLE_FMT_U8P; break;103 case 8: avctx->sample_fmt = AV_SAMPLE_FMT_U8P; break;
104 case 16: avctx->sample_fmt = AV_SAMPLE_FMT_S16P; break;104 case 16: avctx->sample_fmt = AV_SAMPLE_FMT_S16P; break;
105 case 20:105 case 20:
106 case 24:106 case 24: s->factor = 256;
107 case 28:
108 case 32: s->factor = 1 << (32 - avctx->extradata[2]);
109 avctx->sample_fmt = AV_SAMPLE_FMT_S32P; break;107 avctx->sample_fmt = AV_SAMPLE_FMT_S32P; break;
110 default: return AVERROR_INVALIDDATA;108 default: return AVERROR_INVALIDDATA;
111 }109 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t