Commit 4a37b5f6 authored by stefang's avatar stefang

fix slice header checking


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19303 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7d8583b1
...@@ -441,7 +441,7 @@ static inline int check_for_slice(AVSContext *h) { ...@@ -441,7 +441,7 @@ static inline int check_for_slice(AVSContext *h) {
align = (-get_bits_count(gb)) & 7; align = (-get_bits_count(gb)) & 7;
/* check for stuffing byte */ /* check for stuffing byte */
if(!align && (show_bits(gb,8) == 0x80)) if(!align && (show_bits(gb,8) == 0x80))
get_bits(gb,8); align = 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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment