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

Commit 386643fc authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "C2SoftMpeg4Enc: Do not return 0 byte CSD for H263"

parents 752aa7eb 19b43aa0
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
    {