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

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

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

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