diff options
author | Antoine SOULIER <asoulier@google.com> | 2024-04-06 09:32:25 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2024-04-06 09:40:37 +0200 |
commit | 6de00dc5f11967c898d3e79e4af3d05ea7c98b13 (patch) | |
tree | e7f5d39621f8f01cc9b6520cf0100b000d7c15ce /libavcodec/liblc3dec.c | |
parent | ad3fcfd0f2858126dc60334c9e6f4ffa7d8aec21 (diff) | |
download | ffmpeg-6de00dc5f11967c898d3e79e4af3d05ea7c98b13.tar.gz |
avcodec/liblc3dec: fix extradata size
Diffstat (limited to 'libavcodec/liblc3dec.c')
-rw-r--r-- | libavcodec/liblc3dec.c | 2 |
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, |