changeset 9897:d69eaf40d1b8 libavcodec

fix slice header checking
author stefang
date Tue, 30 Jun 2009 06:44:32 +0000
parents bbefbca72722
children 003d7f830e2a
files cavsdec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cavsdec.c	Tue Jun 30 03:57:27 2009 +0000
+++ b/cavsdec.c	Tue Jun 30 06:44:32 2009 +0000
@@ -441,7 +441,7 @@
     align = (-get_bits_count(gb)) & 7;
     /* check for stuffing byte */
     if(!align && (show_bits(gb,8) == 0x80))
-        get_bits(gb,8);
+        align = 8;
     if((show_bits_long(gb,24+align) & 0xFFFFFF) == 0x000001) {
         skip_bits_long(gb,24+align);
         h->stc = get_bits(gb,8);