Commit 0aed742a authored by reimar's avatar reimar

Change maskbit variable to contain (1 << maskbit)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19058 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b358e56a
......@@ -88,10 +88,10 @@ static unsigned int mszh_decomp(const unsigned char * srcptr, int srclen, unsign
while (srcptr < srcptr_end && destptr < destptr_end) {
if (maskbit == 0) {
mask = *srcptr++;
maskbit = 8;
maskbit = 0x80;
continue;
}
if ((mask & (1 << (--maskbit))) == 0) {
if (!(mask & maskbit)) {
memcpy(destptr, srcptr, 4);
destptr += 4;
srcptr += 4;
......@@ -104,6 +104,7 @@ static unsigned int mszh_decomp(const unsigned char * srcptr, int srclen, unsign
av_memcpy_backptr(destptr, ofs, cnt);
destptr += cnt;
}
maskbit >>= 1;
}
return destptr - destptr_bak;
......
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