1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

factorize &

Originally committed as revision 8525 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2007-03-26 00:54:29 +00:00
parent 0abfd53344
commit f39c3c8855

View File

@ -78,17 +78,17 @@ static int lzw_get_code(struct LZWState * s)
s->bbits += 8;
s->bs--;
}
c = s->bbuf & s->curmask;
c = s->bbuf;
s->bbuf >>= s->cursize;
} else { // TIFF
while (s->bbits < s->cursize) {
s->bbuf = (s->bbuf << 8) | (*s->pbuf++);
s->bbits += 8;
}
c = (s->bbuf >> (s->bbits - s->cursize)) & s->curmask;
c = s->bbuf >> (s->bbits - s->cursize);
}
s->bbits -= s->cursize;
return c;
return c & s->curmask;
}
uint8_t* ff_lzw_cur_ptr(LZWState *p)