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

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

Merge "media: Fix the camera recording error."

parents d7c5ec85 77a650d3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3260,8 +3260,8 @@ void MPEG4Writer::Track::writeTkhdBox(uint32_t now) {
        mOwner->writeInt32(0);
    } else {
        int32_t width, height;
        bool success = mMeta->findInt32(kKeyDisplayWidth, &width);
        success = success && mMeta->findInt32(kKeyDisplayHeight, &height);
        bool success = mMeta->findInt32(kKeyWidth, &width);
        success = success && mMeta->findInt32(kKeyHeight, &height);
        CHECK(success);

        mOwner->writeInt32(width << 16);   // 32-bit fixed-point value