ref: 3a9c37325c8f051739752269ff6befdd3382f118
parent: 90fe198243e4d573baf7ba4839099a17bd6c266d
author: Sebastian Rasmussen <[email protected]>
date: Tue Apr 24 00:19:31 EDT 2018
jbig2dec: Remove check for bitmap coding context use. The removed check used bitmask 0x80 to check for the flag "bitmap coding context used" among the symbol dictionary flags. The correct bitmask is 0x100, which was already checked for later in the code, rendering this incorrect check unnecessary.
--- a/jbig2_symbol_dict.c
+++ b/jbig2_symbol_dict.c
@@ -950,11 +950,6 @@
}
}
- if (flags & 0x0080) {
- jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number, "bitmap coding context is used (NYI) symbol data likely to be garbage!");
- goto cleanup;
- }
-
/* 7.4.2.1.2 */
sdat_bytes = params.SDHUFF ? 0 : params.SDTEMPLATE == 0 ? 8 : 2;
memcpy(params.sdat, segment_data + 2, sdat_bytes);