mirror of https://git.ffmpeg.org/ffmpeg.git
Remove useless & 0x1f
Originally committed as revision 19050 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
7b151a98b0
commit
5a18221ba8
|
@ -99,7 +99,7 @@ static unsigned int mszh_decomp(unsigned char * srcptr, int srclen, unsigned cha
|
||||||
ofs = *srcptr++;
|
ofs = *srcptr++;
|
||||||
cnt = *srcptr++;
|
cnt = *srcptr++;
|
||||||
ofs += cnt * 256;
|
ofs += cnt * 256;
|
||||||
cnt = ((cnt >> 3) & 0x1f) + 1;
|
cnt = (cnt >> 3) + 1;
|
||||||
ofs &= 0x7ff;
|
ofs &= 0x7ff;
|
||||||
cnt *= 4;
|
cnt *= 4;
|
||||||
if (destptr_end - destptr < cnt) {
|
if (destptr_end - destptr < cnt) {
|
||||||
|
|
Loading…
Reference in New Issue