mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
factorize &
Originally committed as revision 8525 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
0abfd53344
commit
f39c3c8855
@ -78,17 +78,17 @@ static int lzw_get_code(struct LZWState * s)
|
|||||||
s->bbits += 8;
|
s->bbits += 8;
|
||||||
s->bs--;
|
s->bs--;
|
||||||
}
|
}
|
||||||
c = s->bbuf & s->curmask;
|
c = s->bbuf;
|
||||||
s->bbuf >>= s->cursize;
|
s->bbuf >>= s->cursize;
|
||||||
} else { // TIFF
|
} else { // TIFF
|
||||||
while (s->bbits < s->cursize) {
|
while (s->bbits < s->cursize) {
|
||||||
s->bbuf = (s->bbuf << 8) | (*s->pbuf++);
|
s->bbuf = (s->bbuf << 8) | (*s->pbuf++);
|
||||||
s->bbits += 8;
|
s->bbits += 8;
|
||||||
}
|
}
|
||||||
c = (s->bbuf >> (s->bbits - s->cursize)) & s->curmask;
|
c = s->bbuf >> (s->bbits - s->cursize);
|
||||||
}
|
}
|
||||||
s->bbits -= s->cursize;
|
s->bbits -= s->cursize;
|
||||||
return c;
|
return c & s->curmask;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t* ff_lzw_cur_ptr(LZWState *p)
|
uint8_t* ff_lzw_cur_ptr(LZWState *p)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user