Fixed Huffman decoding issue. The loop was exiting without waiting for a terminating code.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3079 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -796,8 +796,9 @@ TIFFTranslator::decode_huffman(StreamBuffer *pstreambuf, TiffDetails &details,
|
|||||||
DecodeTree *ptrees[2] = {fpwhiteTree, fpblackTree};
|
DecodeTree *ptrees[2] = {fpwhiteTree, fpblackTree};
|
||||||
uint8 currentcolor = 0;
|
uint8 currentcolor = 0;
|
||||||
uint8 *pcurrentpixel = pbits;
|
uint8 *pcurrentpixel = pbits;
|
||||||
while (pixelswrit < details.width) {
|
status_t value = 0;
|
||||||
status_t value = ptrees[currentcolor]->GetValue(stream);
|
while (pixelswrit < details.width || value >= 64) {
|
||||||
|
value = ptrees[currentcolor]->GetValue(stream);
|
||||||
if (value < 0) {
|
if (value < 0) {
|
||||||
debugger("value < 0");
|
debugger("value < 0");
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
|
|||||||
Reference in New Issue
Block a user