# HG changeset patch # User stefang # Date 1235491013 0 # Node ID c753d074bbedb61629b7808a8c1155a64cb87a6c # Parent 2b92a8c404c97a654db0ceb997e8b39be1b5b40b check for a stuffing byte at the end of a slice diff -r 2b92a8c404c9 -r c753d074bbed cavsdec.c --- 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);