Set data_size to 0 to avoid having it uninitialized.
authorReinhard Tartler <siretart@tauware.de>
Tue, 9 Feb 2010 19:22:19 +0000 (19:22 +0000)
committerReinhard Tartler <siretart@tauware.de>
Tue, 9 Feb 2010 19:22:19 +0000 (19:22 +0000)
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

index 629872b..e7bbd5d 100644 (file)
@@ -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");