1
From 7565e59ef9effe28962d7103f78c2d25e76524e0 Mon Sep 17 00:00:00 2001
2
From: michael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
3
Date: Wed, 23 Sep 2009 11:44:30 +0000
4
Subject: [PATCH 3/3] Set data_size to 0 to avoid having it uninitialized.
5
based on 31_mp3_outlen.patch by chrome.
7
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19988 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
9
libavcodec/mpegaudiodec.c | 1 +
10
1 files changed, 1 insertions(+), 0 deletions(-)
12
diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c
13
index 3003e18..dd986bd 100644
14
--- a/libavcodec/mpegaudiodec.c
15
+++ b/libavcodec/mpegaudiodec.c
16
@@ -2278,6 +2278,7 @@ static int decode_frame(AVCodecContext * avctx,
18
if(*data_size < 1152*avctx->channels*sizeof(OUT_INT))
22
if(s->frame_size<=0 || s->frame_size > buf_size){
23
av_log(avctx, AV_LOG_ERROR, "incomplete frame\n");