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

Commit 02141979 authored by Vignesh Venkat's avatar Vignesh Venkat Committed by Android (Google) Code Review
Browse files

Merge "FrameDecoder: clamp displayWidth and displayHeight" into main

parents 1c1c6110 f55ca04e
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -102,6 +102,13 @@ sp<IMemory> allocVideoFrame(const sp<MetaData>& trackMeta,
            displayTop = 0;
        }
    }
    if (displayWidth > width) {
        displayWidth = width;
    }
    if (displayHeight > height) {
        displayHeight = height;
    }


    if (allocRotated) {
        if (rotationAngle == 90 || rotationAngle == 270) {