mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-17 23:44:22 +00:00
GRAPHICS: Fix quantization table id check
This commit is contained in:
parent
8a50d87445
commit
2d6b66ef41
@ -487,8 +487,8 @@ bool JPEGDecoder::readDQT() {
|
||||
|
||||
// Validate the table id
|
||||
tableId &= 0xF;
|
||||
if (tableId > JPEG_MAX_QUANT_TABLES) {
|
||||
warning("JPEG: Invalid number of components");
|
||||
if (tableId >= JPEG_MAX_QUANT_TABLES) {
|
||||
warning("JPEG: Invalid quantization table");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user