From 3835603e7ee917cd95d611f0d663a8cad3466f75 Mon Sep 17 00:00:00 2001 From: Reinhard Tartler Date: Tue, 9 Feb 2010 19:22:19 +0000 Subject: Set data_size to 0 to avoid having it uninitialized. based on 31_mp3_outlen.patch by chrome. backported r19988 by michael Originally committed as revision 21718 to svn://svn.ffmpeg.org/ffmpeg/branches/0.5 --- libavcodec/mpegaudiodec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c index 629872b305..e7bbd5d541 100644 --- a/libavcodec/mpegaudiodec.c +++ b/libavcodec/mpegaudiodec.c @@ -2289,6 +2289,7 @@ retry: if(*data_size < 1152*avctx->channels*sizeof(OUT_INT)) return -1; + *data_size = 0; if(s->frame_size<=0 || s->frame_size > buf_size){ av_log(avctx, AV_LOG_ERROR, "incomplete frame\n"); -- cgit v1.2.3