[FFmpeg-cvslog] r21718 - in branches/0.5: . libavcodec/mpegaudiodec.c
siretart
subversion
Tue Feb 9 20:22:20 CET 2010
Author: siretart
Date: Tue Feb 9 20:22:19 2010
New Revision: 21718
Log:
Set data_size to 0 to avoid having it uninitialized.
based on 31_mp3_outlen.patch by chrome.
backported r19988 by michael
Modified:
branches/0.5/ (props changed)
branches/0.5/libavcodec/mpegaudiodec.c
Modified: branches/0.5/libavcodec/mpegaudiodec.c
==============================================================================
--- branches/0.5/libavcodec/mpegaudiodec.c Tue Feb 9 20:20:25 2010 (r21717)
+++ branches/0.5/libavcodec/mpegaudiodec.c Tue Feb 9 20:22:19 2010 (r21718)
@@ -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");
More information about the ffmpeg-cvslog
mailing list