Mercurial > libavcodec.hg
comparison mpegaudiodec.c @ 10242:359554637332 libavcodec
Set data_size to 0 to avoid having it uninitialized.
based on 31_mp3_outlen.patch by chrome.
author | michael |
---|---|
date | Wed, 23 Sep 2009 11:44:30 +0000 |
parents | 9335e435dde0 |
children | b44eae1b1971 |
comparison
equal
deleted
inserted
replaced
10241:9335e435dde0 | 10242:359554637332 |
---|---|
2276 avctx->bit_rate = s->bit_rate; | 2276 avctx->bit_rate = s->bit_rate; |
2277 avctx->sub_id = s->layer; | 2277 avctx->sub_id = s->layer; |
2278 | 2278 |
2279 if(*data_size < 1152*avctx->channels*sizeof(OUT_INT)) | 2279 if(*data_size < 1152*avctx->channels*sizeof(OUT_INT)) |
2280 return -1; | 2280 return -1; |
2281 *data_size = 0; | |
2281 | 2282 |
2282 if(s->frame_size<=0 || s->frame_size > buf_size){ | 2283 if(s->frame_size<=0 || s->frame_size > buf_size){ |
2283 av_log(avctx, AV_LOG_ERROR, "incomplete frame\n"); | 2284 av_log(avctx, AV_LOG_ERROR, "incomplete frame\n"); |
2284 return -1; | 2285 return -1; |
2285 }else if(s->frame_size < buf_size){ | 2286 }else if(s->frame_size < buf_size){ |