[FFmpeg-cvslog] r19988 - trunk/libavcodec/mpegaudiodec.c

michael subversion
Wed Sep 23 13:44:30 CEST 2009


Author: michael
Date: Wed Sep 23 13:44:30 2009
New Revision: 19988

Log:
Set data_size to 0 to avoid having it uninitialized.
based on 31_mp3_outlen.patch by chrome.

Modified:
   trunk/libavcodec/mpegaudiodec.c

Modified: trunk/libavcodec/mpegaudiodec.c
==============================================================================
--- trunk/libavcodec/mpegaudiodec.c	Wed Sep 23 13:33:44 2009	(r19987)
+++ trunk/libavcodec/mpegaudiodec.c	Wed Sep 23 13:44:30 2009	(r19988)
@@ -2278,6 +2278,7 @@ static int decode_frame(AVCodecContext *
 
     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");



More information about the ffmpeg-cvslog mailing list