[FFmpeg-cvslog] avcodec/liblc3dec: fix extradata size

Antoine SOULIER git at videolan.org
Sat Apr 6 10:56:28 EEST 2024


ffmpeg | branch: master | Antoine SOULIER <asoulier at google.com> | Sat Apr  6 09:32:25 2024 +0200| [6de00dc5f11967c898d3e79e4af3d05ea7c98b13] | committer: Stefano Sabatini

avcodec/liblc3dec: fix extradata size

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6de00dc5f11967c898d3e79e4af3d05ea7c98b13
---

 libavcodec/liblc3dec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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,



More information about the ffmpeg-cvslog mailing list