History

avcodec/liblc3dec: fix extradata size

Antoine SOULIER committed 2 years ago

Commit 6de00dc1 parent ad3fcfd1 file · +1 −1Browse files

Unified · Split

libavcodec/liblc3dec.c+1−1
@@ -44,7 +44,7 @@ static av_cold int liblc3_decode_init(AVCodecContext *avctx) · 43 unmodified lines
4444 int ep_mode;
4545 unsigned decoder_size;
4646
47− if (avctx->extradata_size < 10)
47+ if (avctx->extradata_size < 6)
4848 return AVERROR_INVALIDDATA;
4949 if (channels < 0 || channels > DECODER_MAX_CHANNELS) {
5050 av_log(avctx, AV_LOG_ERROR,

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