diff options
author | Stefan Gehrer <stefan.gehrer@gmx.de> | 2009-06-30 06:44:32 +0000 |
---|---|---|
committer | Stefan Gehrer <stefan.gehrer@gmx.de> | 2009-06-30 06:44:32 +0000 |
commit | 470de55aa17cb933a21f7e4c4015202eaba7277f (patch) | |
tree | 2e9c3a9203984a25be74004c51434ebb91fd6398 /libavcodec/cavsdec.c | |
parent | 822d0a6e0c02e7ad19f09cd0b1d4d182fa2d8e26 (diff) | |
download | ffmpeg-470de55aa17cb933a21f7e4c4015202eaba7277f.tar.gz |
fix slice header checking
Originally committed as revision 19303 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/cavsdec.c')
-rw-r--r-- | libavcodec/cavsdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |