Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b1644e15 authored by Lajos Molnar's avatar Lajos Molnar
Browse files

MediaCodec.Image: use image.setCrop() in constructor

This avoids the ReadOnlyBuffer exception for readonly images.

Bug: 17059255
Change-Id: I83de487e8bf60ba09b1cba1c0106191dd741c217
parent 023b6812
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1756,7 +1756,7 @@ final public class MediaCodec {
            if (cropRect != null) {
                cropRect.offset(-xOffset, -yOffset);
            }
            setCropRect(cropRect);
            super.setCropRect(cropRect);

            // save offsets and info
            mXOffset = xOffset;