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

Commit cf41ffc3 authored by Giridhar Tippabathuni's avatar Giridhar Tippabathuni Committed by hkuang
Browse files

Transcoder: Fix profile and level entry copier data type

Fixed the source params KEY_PROFILE and KEY_LEVEL
entry copier data types.

Bug: 195124211
Test: atest  -c CtsMediaTranscodingTestCases:MediaTranscodeManagerTest

Change-Id: I50ecd4f183eb665c95a714e4905e0198f2cfe29d
parent 65fac4bb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -55,8 +55,8 @@ static std::shared_ptr<AMediaFormat> createVideoTrackFormat(AMediaFormat* srcFor
    AMediaFormat_getString(srcFormat, AMEDIAFORMAT_KEY_MIME, &srcMime);
    if (!AMediaFormat_getString(options, AMEDIAFORMAT_KEY_MIME, &dstMime) ||
        strcmp(srcMime, dstMime) == 0) {
        srcParamsToCopy.push_back(ENTRY_COPIER(AMEDIAFORMAT_KEY_PROFILE, String));
        srcParamsToCopy.push_back(ENTRY_COPIER(AMEDIAFORMAT_KEY_LEVEL, String));
        srcParamsToCopy.push_back(ENTRY_COPIER(AMEDIAFORMAT_KEY_PROFILE, Int32));
        srcParamsToCopy.push_back(ENTRY_COPIER(AMEDIAFORMAT_KEY_LEVEL, Int32));
    }

    // ------- Define parameters to copy from the caller's options -------