Proper error handling for tight filters

Don't throw an exception when we encounter an unsupported tight
subencoding.
This commit is contained in:
samhed 2016-06-10 17:15:42 +02:00
parent b88b27e378
commit caceea56f1
1 changed files with 1 additions and 2 deletions

View File

@ -2011,8 +2011,7 @@ var RFB;
} else {
// Filter 0, Copy could be valid here, but servers don't send it as an explicit filter
// Filter 2, Gradient is valid but not use if jpeg is enabled
// TODO(directxman12): why aren't we just calling '_fail' here
throw new Error("Unsupported tight subencoding received, filter: " + filterId);
this._fail("Unsupported tight subencoding received, filter: " + filterId);
}
break;
case "copy":