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

Commit d8c6e0e5 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "MPEG4Writer: Fix MediaServer crash in MM Stress test."

parents 04b735af 07b75c84
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2699,6 +2699,11 @@ void MPEG4Writer::Track::writeTrackHeader(bool use32BitOffset) {
    ALOGV("%s track time scale: %d",
        mIsAudio? "Audio": "Video", mTimeScale);

    if (mMdatSizeBytes == 0) {
      ALOGV("Track data is not available.");
      return;
    }

    uint32_t now = getMpeg4Time();
    mOwner->beginBox("trak");
        writeTkhdBox(now);