changeset 7870:08ef30f08a01 libavcodec

Only print "invalid new backstep" when it is really invalid. Fixes issue541.
author michael
date Tue, 16 Sep 2008 01:49:32 +0000
parents cd18f66b3663
children 8277c41b7160
files mpegaudiodec.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpegaudiodec.c	Tue Sep 16 01:24:12 2008 +0000
+++ b/mpegaudiodec.c	Tue Sep 16 01:49:32 2008 +0000
@@ -2240,7 +2240,8 @@
         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);