avcodec/liblc3dec: fix extradata size
This commit is contained in:
parent
ad3fcfd0f2
commit
6de00dc5f1
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ static av_cold int liblc3_decode_init(AVCodecContext *avctx)
|
|||
int ep_mode;
|
||||
unsigned decoder_size;
|
||||
|
||||
if (avctx->extradata_size < 10)
|
||||
if (avctx->extradata_size < 6)
|
||||
return AVERROR_INVALIDDATA;
|
||||
if (channels < 0 || channels > DECODER_MAX_CHANNELS) {
|
||||
av_log(avctx, AV_LOG_ERROR,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue