diff cavsdec.c @ 9023:c753d074bbed libavcodec

check for a stuffing byte at the end of a slice
author stefang
date Tue, 24 Feb 2009 15:56:53 +0000
parents 2b92a8c404c9
children 54bc8a2727b0
line wrap: on
line diff
--- a/cavsdec.c	Tue Feb 24 15:54:51 2009 +0000
+++ b/cavsdec.c	Tue Feb 24 15:56:53 2009 +0000
@@ -439,6 +439,9 @@
     if(h->mbx)
         return 0;
     align = (-get_bits_count(gb)) & 7;
+    /* check for stuffing byte */
+    if(!align && (show_bits(gb,8) == 0x80))
+        get_bits(gb,8);
     if((show_bits_long(gb,24+align) & 0xFFFFFF) == 0x000001) {
         skip_bits_long(gb,24+align);
         h->stc = get_bits(gb,8);