1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

make decoder decode the first frame properly if theres more than just one

frame input

Originally committed as revision 9144 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2007-05-27 22:34:49 +00:00
parent cca2adb87d
commit d5aa01cd30

View File

@ -2417,6 +2417,7 @@ retry:
return -1; return -1;
}else if(s->frame_size < buf_size){ }else if(s->frame_size < buf_size){
av_log(avctx, AV_LOG_ERROR, "incorrect frame size\n"); 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); out_size = mp_decode_frame(s, out_samples, buf, buf_size);