# HG changeset patch # User michael # Date 1253706270 0 # Node ID 3595546373321830080967e235e213a534172038 # Parent 9335e435dde07fa31f47f17c12b2010b2cc8f5d5 Set data_size to 0 to avoid having it uninitialized. based on 31_mp3_outlen.patch by chrome. diff -r 9335e435dde0 -r 359554637332 mpegaudiodec.c --- a/mpegaudiodec.c Wed Sep 23 11:33:44 2009 +0000 +++ b/mpegaudiodec.c Wed Sep 23 11:44:30 2009 +0000 @@ -2278,6 +2278,7 @@ 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");