Commit 7565e59e authored by michael's avatar michael

Set data_size to 0 to avoid having it uninitialized.

based on 31_mp3_outlen.patch by chrome.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19988 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f6a0f807
...@@ -2278,6 +2278,7 @@ static int decode_frame(AVCodecContext * avctx, ...@@ -2278,6 +2278,7 @@ static int decode_frame(AVCodecContext * avctx,
if(*data_size < 1152*avctx->channels*sizeof(OUT_INT)) if(*data_size < 1152*avctx->channels*sizeof(OUT_INT))
return -1; return -1;
*data_size = 0;
if(s->frame_size<=0 || s->frame_size > buf_size){ if(s->frame_size<=0 || s->frame_size > buf_size){
av_log(avctx, AV_LOG_ERROR, "incomplete frame\n"); av_log(avctx, AV_LOG_ERROR, "incomplete frame\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment