Mercurial > libavcodec.hg
diff mpegaudiodec.c @ 5076:796c2a5481ad libavcodec
make decoder decode the first frame properly if theres more than just one
frame input
| author | michael |
|---|---|
| date | Sun, 27 May 2007 22:34:49 +0000 |
| parents | d981eb275c8f |
| children | bff60ecc02f9 |
line wrap: on
line diff
--- a/mpegaudiodec.c Fri May 25 14:42:11 2007 +0000 +++ b/mpegaudiodec.c Sun May 27 22:34:49 2007 +0000 @@ -2417,6 +2417,7 @@ return -1; }else if(s->frame_size < buf_size){ av_log(avctx, AV_LOG_ERROR, "incorrect frame size\n"); + buf_size= s->frame_size; } out_size = mp_decode_frame(s, out_samples, buf, buf_size);
