diff options
Diffstat (limited to 'libavcodec/lcldec.c')
-rw-r--r-- | libavcodec/lcldec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/lcldec.c b/libavcodec/lcldec.c index 44bcfbd..6bd4556 100644 --- a/libavcodec/lcldec.c +++ b/libavcodec/lcldec.c @@ -99,7 +99,7 @@ static unsigned int mszh_decomp(unsigned char * srcptr, int srclen, unsigned cha ofs = *srcptr++; cnt = *srcptr++; ofs += cnt * 256; - cnt = ((cnt >> 3) & 0x1f) + 1; + cnt = (cnt >> 3) + 1; ofs &= 0x7ff; cnt *= 4; if (destptr_end - destptr < cnt) { |