diff h263.c @ 597:d5d0c11ea4cf libavcodec

fixing level overflow check for qp=1
author michaelni
date Mon, 05 Aug 2002 19:05:02 +0000
parents d3f374218030
children 0c950f816d61
line wrap: on
line diff
--- a/h263.c	Sun Aug 04 19:28:27 2002 +0000
+++ b/h263.c	Mon Aug 05 19:05:02 2002 +0000
@@ -3042,8 +3042,8 @@
                     
                     SKIP_COUNTER(re, &s->gb, 1+12+1);
                     
-                    if(level>512 || level<-512){ //FIXME check that QP=1 is ok with this too
-                        fprintf(stderr, "|level| overflow in 3. esc\n");
+                    if(level*s->qscale>1024 || level*s->qscale<-1024){
+                        fprintf(stderr, "|level| overflow in 3. esc, qp=%d\n", s->qscale);
                         return DECODING_AC_LOST;
                     }
 #if 1