summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine SOULIER <asoulier@google.com>2024-04-06 09:32:25 +0200
committerStefano Sabatini <stefasab@gmail.com>2024-04-06 09:40:37 +0200
commit6de00dc5f11967c898d3e79e4af3d05ea7c98b13 (patch)
treee7f5d39621f8f01cc9b6520cf0100b000d7c15ce
parentad3fcfd0f2858126dc60334c9e6f4ffa7d8aec21 (diff)
avcodec/liblc3dec: fix extradata size
-rw-r--r--libavcodec/liblc3dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/liblc3dec.c b/libavcodec/liblc3dec.c
index 7059808acb..1553552faa 100644
--- a/libavcodec/liblc3dec.c
+++ b/libavcodec/liblc3dec.c
@@ -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,