fpreadtiff: undo wrong fix

git-svn-id: trunk@22259 -
This commit is contained in:
Mattias Gaertner 2012-08-27 20:16:38 +00:00
parent 445ec2672a
commit 32d1c5444d

View File

@ -2098,7 +2098,7 @@ var
// read two or three bytes
if CurBitLength+SrcPosBit>16 then begin
// read from three bytes
if SrcPos+3>=Count then Error('LZW stream overrun');
if SrcPos+3>Count then Error('LZW stream overrun');
v:=PByte(Buffer)[SrcPos];
inc(SrcPos);
v:=(v shl 8)+PByte(Buffer)[SrcPos];
@ -2107,7 +2107,7 @@ var
v:=v shr (24-CurBitLength-SrcPosBit);
end else begin
// read from two bytes
if SrcPos+2>=Count then Error('LZW stream overrun');
if SrcPos+2>Count then Error('LZW stream overrun');
v:=PByte(Buffer)[SrcPos];
inc(SrcPos);
v:=(v shl 8)+PByte(Buffer)[SrcPos];