diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-09-23 11:44:30 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-09-23 11:44:30 +0000 |
commit | 45a014d75efd043aa432b87869f898e552cbbb75 (patch) | |
tree | 4c5c7fcc356286b52d077495d3468b63a3015822 /libavcodec/mpegaudiodec.c | |
parent | f7304e99d4ec4f7751adae65580694cef9613c30 (diff) | |
download | ffmpeg-45a014d75efd043aa432b87869f898e552cbbb75.tar.gz |
Set data_size to 0 to avoid having it uninitialized.
based on 31_mp3_outlen.patch by chrome.
Originally committed as revision 19988 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegaudiodec.c')
-rw-r--r-- | libavcodec/mpegaudiodec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c index 3003e18040..dd986bd859 100644 --- a/libavcodec/mpegaudiodec.c +++ b/libavcodec/mpegaudiodec.c @@ -2278,6 +2278,7 @@ static int decode_frame(AVCodecContext * avctx, 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"); |