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

Commit 2e0b25ce authored by Hangyu Kuang's avatar Hangyu Kuang Committed by Lajos Molnar
Browse files

IMediaMetadataRetriever: Remove implicit display size resize logic

Bug: 62198298
Test: CTS test
Change-Id: I1a6d2cf59291f37474724067d747703e08ff1325
parent 73933788
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -422,15 +422,8 @@ static VideoFrame *extractVideoFrame(
                && trackMeta->findInt32(kKeyDisplayHeight, &height)
                && frame->mDisplayWidth > 0 && frame->mDisplayHeight > 0
                && width > 0 && height > 0) {
            if (frame->mDisplayHeight * (int64_t)width / height > (int64_t)frame->mDisplayWidth) {
                frame->mDisplayHeight =
                        (int32_t)(height * (int64_t)frame->mDisplayWidth / width);
            } else {
                frame->mDisplayWidth =
                        (int32_t)(frame->mDisplayHeight * (int64_t)width / height);
            }
            ALOGV("thumbNail width and height are overridden to %d x %d",
                    frame->mDisplayWidth, frame->mDisplayHeight);
            frame->mDisplayWidth = width;
            frame->mDisplayHeight = height;
        }
    }