[Ffmpeg-cvslog] r6194 - trunk/libavcodec/mpegaudiodec.c
michael
subversion
Fri Sep 8 10:27:51 CEST 2006
Author: michael
Date: Fri Sep 8 10:27:51 2006
New Revision: 6194
Modified:
trunk/libavcodec/mpegaudiodec.c
Log:
print more correct error messges
Modified: trunk/libavcodec/mpegaudiodec.c
==============================================================================
--- trunk/libavcodec/mpegaudiodec.c (original)
+++ trunk/libavcodec/mpegaudiodec.c Fri Sep 8 10:27:51 2006
@@ -2622,9 +2622,11 @@
break;
}
- if(s->frame_size<=0 || s->frame_size < buf_size){
+ if(s->frame_size<=0 || s->frame_size > buf_size){
av_log(avctx, AV_LOG_ERROR, "incomplete frame\n");
return -1;
+ }else if(s->frame_size < buf_size){
+ av_log(avctx, AV_LOG_ERROR, "incorrect frame size\n");
}
out_size = mp_decode_frame(s, out_samples, buf, buf_size);
More information about the ffmpeg-cvslog
mailing list