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

Commit ca5dfc3c 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

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

Change-Id: I1dde67f27b15a15cb6af8b557080786aa94803e8
parents 9b16469e 386643fc
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
    {