summaryrefslogtreecommitdiff
path: root/libavcodec/mpegaudiodec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-05-27 22:34:49 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-05-27 22:34:49 +0000
commitd5aa01cd302c4cb6562f054257f864ba47ccdce1 (patch)
tree73c8777bbf1ef34e0ff3f62b8fb4ecaf2660b6ae /libavcodec/mpegaudiodec.c
parentcca2adb87dd4eef37c3a1c29435566a9247f23fc (diff)
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
Diffstat (limited to 'libavcodec/mpegaudiodec.c')
-rw-r--r--libavcodec/mpegaudiodec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c
index bfd54d535a..0cb6476a2e 100644
--- a/libavcodec/mpegaudiodec.c
+++ b/libavcodec/mpegaudiodec.c
@@ -2417,6 +2417,7 @@ retry:
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);