changeset 594:7e26eb37bbbc libavcodec

supporting rare overflow mess even with error_resilience>=0
author michaelni
date Sun, 04 Aug 2002 16:46:18 +0000
parents 5b7e0db3e886
children 5f7ab2e73bc9
files msmpeg4.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/msmpeg4.c	Sun Aug 04 16:21:41 2002 +0000
+++ b/msmpeg4.c	Sun Aug 04 16:46:18 2002 +0000
@@ -1859,7 +1859,7 @@
         if (i > 62){
             i-= 192;
             if(i&(~63)){
-                if(s->error_resilience<0){
+                if((i+192 == 64 && level/qmul==-1) || s->error_resilience<0){
                     fprintf(stderr, "ignoring overflow at %d %d\n", s->mb_x, s->mb_y);
                     break;
                 }else{