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

Commit 6d72320f authored by Yi Kong's avatar Yi Kong Committed by Android (Google) Code Review
Browse files

Merge "MediaMetadataRetriever: Fix Clang unused-but-set-variable warning" into main

parents 5fecca53 ba169233
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -270,11 +270,9 @@ static jobject getBitmapFromVideoFrame(
    ScopedLocalRef<jobject> config(env, ABitmapConfig_getConfigFromFormat(env, outColorType));

    uint32_t width, height, displayWidth, displayHeight;
    bool swapWidthAndHeight = false;
    if (videoFrame->mRotationAngle == 90 || videoFrame->mRotationAngle == 270) {
        width = videoFrame->mHeight;
        height = videoFrame->mWidth;
        swapWidthAndHeight = true;
        displayWidth = videoFrame->mDisplayHeight;
        displayHeight = videoFrame->mDisplayWidth;
    } else {