changeset 824:371ef113d984 libavcodec

better padding bug detection
author michaelni
date Sat, 02 Nov 2002 00:05:06 +0000
parents 5344ecb2c677
children 92c6d8b71e3b
files h263dec.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/h263dec.c	Fri Nov 01 20:37:10 2002 +0000
+++ b/h263dec.c	Sat Nov 02 00:05:06 2002 +0000
@@ -251,10 +251,10 @@
         
         if(bits_left==0 || bits_left>8){
             s->padding_bug_score++;
-        } else {
+        } else if(bits_left != 1){
             int v= show_bits(&s->gb, 8);
             v|= 0x7F >> (7-(bits_count&7));
-                
+
             if(v==0x7F)
                 s->padding_bug_score--;
             else