From 470de55aa17cb933a21f7e4c4015202eaba7277f Mon Sep 17 00:00:00 2001 From: Stefan Gehrer Date: Tue, 30 Jun 2009 06:44:32 +0000 Subject: [PATCH] fix slice header checking Originally committed as revision 19303 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/cavsdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/cavsdec.c b/libavcodec/cavsdec.c index 31e9ff39c6..458fcf2bb5 100644 --- a/libavcodec/cavsdec.c +++ b/libavcodec/cavsdec.c @@ -441,7 +441,7 @@ static inline int check_for_slice(AVSContext *h) { 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);