Mercurial > libavcodec.hg
changeset 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 | 33d50e0e1823 |
children | cf6608b00186 |
files | mpegaudiodec.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
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);