Fix never met condition
(descriptor & 0x10)==1 could never be met, it would return 0x10 or 0x00 CID 2567
This commit is contained in:
@@ -340,7 +340,7 @@ identify_tga_header(BPositionIO *inSource, translator_info *outInfo,
|
||||
imagespec.descriptor = buf[17];
|
||||
// images ordered from Right to Left (rather than Left to Right)
|
||||
// are not supported
|
||||
if ((imagespec.descriptor & TGA_ORIGIN_HORZ_BIT) == TGA_ORIGIN_RIGHT)
|
||||
if ((imagespec.descriptor & TGA_ORIGIN_HORZ_BIT) != TGA_ORIGIN_LEFT)
|
||||
return B_NO_TRANSLATOR;
|
||||
// unused descriptor bits, these bits must be zero
|
||||
if (imagespec.descriptor & TGA_DESC_BITS76)
|
||||
|
||||
Reference in New Issue
Block a user