check for a stuffing byte at the end of a slice

Originally committed as revision 17559 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Stefan Gehrer 16 years ago
parent 88db5551cf
commit cd3356ff73
  1. 3
      libavcodec/cavsdec.c

@ -439,6 +439,9 @@ static inline int check_for_slice(AVSContext *h) {
if(h->mbx) if(h->mbx)
return 0; return 0;
align = (-get_bits_count(gb)) & 7; 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) { if((show_bits_long(gb,24+align) & 0xFFFFFF) == 0x000001) {
skip_bits_long(gb,24+align); skip_bits_long(gb,24+align);
h->stc = get_bits(gb,8); h->stc = get_bits(gb,8);

Loading…
Cancel
Save