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
44 int ep_mode;44 int ep_mode;
45 unsigned decoder_size;45 unsigned decoder_size;
46 46
47 if (avctx->extradata_size < 10)47 if (avctx->extradata_size < 6)
48 return AVERROR_INVALIDDATA;48 return AVERROR_INVALIDDATA;
49 if (channels < 0 || channels > DECODER_MAX_CHANNELS) {49 if (channels < 0 || channels > DECODER_MAX_CHANNELS) {
50 av_log(avctx, AV_LOG_ERROR,50 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