[FFmpeg-cvslog] r15339 - trunk/libavcodec/mpegaudiodec.c
michael
subversion
Tue Sep 16 03:49:33 CEST 2008
Author: michael
Date: Tue Sep 16 03:49:32 2008
New Revision: 15339
Log:
Only print "invalid new backstep" when its really invalid.
Fixes issue541.
Modified:
trunk/libavcodec/mpegaudiodec.c
Modified: trunk/libavcodec/mpegaudiodec.c
==============================================================================
--- trunk/libavcodec/mpegaudiodec.c (original)
+++ trunk/libavcodec/mpegaudiodec.c Tue Sep 16 03:49:32 2008
@@ -2240,7 +2240,8 @@ static int mp_decode_frame(MPADecodeCont
i= (s->gb.size_in_bits - get_bits_count(&s->gb))>>3;
if(i<0 || i > BACKSTEP_SIZE || nb_frames<0){
- av_log(s->avctx, AV_LOG_WARNING, "invalid new backstep %d\n", i);
+ if(i<0)
+ av_log(s->avctx, AV_LOG_ERROR, "invalid new backstep %d\n", i);
i= FFMIN(BACKSTEP_SIZE, buf_size - HEADER_SIZE);
}
assert(i <= buf_size - HEADER_SIZE && i>= 0);
More information about the ffmpeg-cvslog
mailing list