summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinhard Tartler <siretart@tauware.de>2010-02-09 19:22:19 +0000
committerReinhard Tartler <siretart@tauware.de>2010-02-09 19:22:19 +0000
commit3835603e7ee917cd95d611f0d663a8cad3466f75 (patch)
tree0ed04fbf0689a043392d43f0d1acb7e0a9fb8a9a
parent4b360ee2ca6a5e9b6ca6b862dc391d126e6366dc (diff)
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
-rw-r--r--libavcodec/mpegaudiodec.c1
1 files changed, 1 insertions, 0 deletions
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");