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

Commit c2822d47 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix dst crop used in color converter"

parents 693a9524 cb597492
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -647,7 +647,9 @@ status_t VideoFrameDecoder::onOutputReceived(
                crop_left, crop_top, crop_right, crop_bottom,
                mFrame->getFlattenedData(),
                mFrame->mWidth, mFrame->mHeight, mFrame->mRowBytes,
                crop_left, crop_top, crop_right, crop_bottom);
                // since the frame is allocated with top-left adjusted,
                // the dst rect should start at {0,0} as well.
                0, 0, mFrame->mWidth - 1, mFrame->mHeight - 1);
        return OK;
    }