Fix crash on previewing JPEG2000.
authorCarl Hetherington <cth@carlh.net>
Wed, 14 Dec 2016 12:01:57 +0000 (12:01 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 14 Dec 2016 12:01:57 +0000 (12:01 +0000)
I remember adding this line to fix a completely screwed up display,
but on testing again it seems to be wrong; it results in wildly out-of-range
memory access.  Not sure what's going on.

src/lib/j2k_image_proxy.cc

index 4e38213c8326ef1930da01cc3a3cf934efa96730..eea4b038a2c841861a5799288bb216cb7ee9cafc 100644 (file)
@@ -139,7 +139,6 @@ J2KImageProxy::image (optional<dcp::NoteHandler>, optional<dcp::Size> target_siz
                        }
                        ++p;
                }
-               p += _j2k->factor(0) * width;
        }
 
        return image;