diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2017-09-08 09:53:52 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2017-09-08 09:53:52 +0200 |
| commit | 33167ddc13fd20313ccfcdc64141000407b68b8f (patch) | |
| tree | 28c08371995139df5a6d844f60d2cd15fff1f5a9 /src/lib | |
| parent | b73ce715d2a484d7355639d863d0418a0e5b8858 (diff) | |
opj_j2k_update_image_data(): restrict optimized path
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/openjp2/j2k.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/openjp2/j2k.c b/src/lib/openjp2/j2k.c index 8bac309f..0dad1503 100644 --- a/src/lib/openjp2/j2k.c +++ b/src/lib/openjp2/j2k.c @@ -9129,6 +9129,7 @@ static OPJ_BOOL opj_j2k_update_image_data(opj_tcd_t * p_tcd, /* Allocate output component buffer if necessary */ if (l_img_comp_dest->data == NULL && l_start_offset_src == 0 && l_start_offset_dest == 0 && + src_data_stride == l_img_comp_dest->w && l_width_dest == l_img_comp_dest->w && l_height_dest == l_img_comp_dest->h) { /* If the final image matches the tile buffer, then borrow it */ |
