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

Commit 19b43aa0 authored by Harish Mahendrakar's avatar Harish Mahendrakar
Browse files

C2SoftMpeg4Enc: Do not return 0 byte CSD for H263

Bug: 192791004
Test: recordvideo -2
Test: atest VtsHalMediaC2V1_0TargetVideoEncTest
Test: atest CtsMediaV2TestCases

Change-Id: If58a8b7c0e4d6097b9ecf4979ded50c4e628ae54
parent 250abea4
Loading
Loading
Loading
Loading
+11 −9
Original line number Diff line number Diff line
@@ -436,6 +436,7 @@ void C2SoftMpeg4Enc::process(
        }

        ++mNumInputFrames;
        if (outputSize) {
            std::unique_ptr<C2StreamInitDataInfo::output> csd =
                C2StreamInitDataInfo::output::AllocUnique(outputSize, 0u);
            if (!csd) {
@@ -447,6 +448,7 @@ void C2SoftMpeg4Enc::process(
            memcpy(csd->m.value, outPtr, outputSize);
            work->worklets.front()->output.configUpdate.push_back(std::move(csd));
        }
    }

    // handle dynamic bitrate change
    {