f56fc8f556
This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/openjpeg2.git#9e4c2c54d07f1bae326b894c620afb3aa9583536
17 lines
1.0 KiB
Diff
17 lines
1.0 KiB
Diff
diff -rupN --no-dereference openjpeg-2.3.1/src/lib/openjp2/tcd.c openjpeg-2.3.1-new/src/lib/openjp2/tcd.c
|
|
--- openjpeg-2.3.1/src/lib/openjp2/tcd.c 2020-12-17 16:25:44.797030458 +0100
|
|
+++ openjpeg-2.3.1-new/src/lib/openjp2/tcd.c 2020-12-17 16:25:44.799030456 +0100
|
|
@@ -1235,9 +1235,11 @@ static OPJ_BOOL opj_tcd_code_block_enc_a
|
|
|
|
/* +1 is needed for https://github.com/uclouvain/openjpeg/issues/835 */
|
|
/* and actually +2 required for https://github.com/uclouvain/openjpeg/issues/982 */
|
|
+ /* and +7 for https://github.com/uclouvain/openjpeg/issues/1283 (-M 3) */
|
|
+ /* and +26 for https://github.com/uclouvain/openjpeg/issues/1283 (-M 7) */
|
|
/* TODO: is there a theoretical upper-bound for the compressed code */
|
|
/* block size ? */
|
|
- l_data_size = 2 + (OPJ_UINT32)((p_code_block->x1 - p_code_block->x0) *
|
|
+ l_data_size = 26 + (OPJ_UINT32)((p_code_block->x1 - p_code_block->x0) *
|
|
(p_code_block->y1 - p_code_block->y0) * (OPJ_INT32)sizeof(OPJ_UINT32));
|
|
|
|
if (l_data_size > p_code_block->data_size) {
|