Proper error handling for tight filters
Don't throw an exception when we encounter an unsupported tight subencoding.
This commit is contained in:
parent
3daa86cbae
commit
b2cdd55859
|
@ -2011,8 +2011,7 @@ var RFB;
|
||||||
} else {
|
} else {
|
||||||
// Filter 0, Copy could be valid here, but servers don't send it as an explicit filter
|
// 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
|
// Filter 2, Gradient is valid but not use if jpeg is enabled
|
||||||
// TODO(directxman12): why aren't we just calling '_fail' here
|
this._fail("Unsupported tight subencoding received, filter: " + filterId);
|
||||||
throw new Error("Unsupported tight subencoding received, filter: " + filterId);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "copy":
|
case "copy":
|
||||||
|
|
Loading…
Reference in New Issue