1
From f6a0f8074a6ad33ebb90b687c77d33cd552f7005 Mon Sep 17 00:00:00 2001
2
From: michael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
3
Date: Wed, 23 Sep 2009 11:33:44 +0000
4
Subject: [PATCH 2/3] Check data_size in decode_frame_mp3on4().
6
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19987 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
8
libavcodec/mpegaudiodec.c | 3 +++
9
1 files changed, 3 insertions(+), 0 deletions(-)
11
diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c
12
index 6f451c3..3003e18 100644
13
--- a/libavcodec/mpegaudiodec.c
14
+++ b/libavcodec/mpegaudiodec.c
15
@@ -2466,6 +2466,9 @@ static int decode_frame_mp3on4(AVCodecContext * avctx,
19
+ if(*data_size < MPA_FRAME_SIZE * MPA_MAX_CHANNELS * s->frames * sizeof(OUT_INT))
23
// Discard too short frames
24
if (buf_size < HEADER_SIZE)