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

Commit 4f587a02 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "C2SoftMpeg4Enc: Do not return 0 byte CSD for H263" am: 386643fc am: ca5dfc3c

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/1773666

Change-Id: I98e746a048ac209438d4d488bb40aa0374df7e61
parents 15296de7 ca5dfc3c
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
    {