changeset 1752:9f47c2211da9 libavcodec

more tolerance for dc=0
author michael
date Wed, 21 Jan 2004 19:14:26 +0000
parents 3f1125adbc84
children bbf583d24584
files h263.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/h263.c	Mon Jan 19 14:41:34 2004 +0000
+++ b/h263.c	Wed Jan 21 19:14:26 2004 +0000
@@ -4432,7 +4432,8 @@
             level = get_bits(&s->gb, 8);
             if((level&0x7F) == 0){
                 av_log(s->avctx, AV_LOG_ERROR, "illegal dc %d at %d %d\n", level, s->mb_x, s->mb_y);
-                return -1;
+                if(s->error_resilience >= FF_ER_COMPLIANT)
+                    return -1;
             }
             if (level == 255)
                 level = 128;