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

Commit f1b3ee26 authored by James Dong's avatar James Dong Committed by Android (Google) Code Review
Browse files

Merge "Added number of encoded frames and duration to the MPEG4Writer::Track::dump"

parents 68ea6cab 13210f33
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -91,7 +91,6 @@ private:
    int64_t mMaxChunkDurationUs;

    bool mIsRealTimeRecording;
    int64_t mMaxTimeStampUs;
    int64_t mEstimatedTrackSizeBytes;
    int64_t mMdatSizeBytes;
    int32_t mTimeScale;
@@ -334,6 +333,10 @@ status_t MPEG4Writer::Track::dump(
    snprintf(buffer, SIZE, "       reached EOS: %s\n",
            mReachedEOS? "true": "false");
    result.append(buffer);
    snprintf(buffer, SIZE, "       frames encoded : %d\n", mNumSamples);
    result.append(buffer);
    snprintf(buffer, SIZE, "       duration encoded : %lld us\n", mTrackDurationUs);
    result.append(buffer);
    ::write(fd, result.string(), result.size());
    return OK;
}
@@ -1147,6 +1150,7 @@ MPEG4Writer::Track::Track(
      mStarted(false),
      mTrackId(trackId),
      mTrackDurationUs(0),
      mNumSamples(0),
      mEstimatedTrackSizeBytes(0),
      mSamplesHaveSameSize(true),
      mCodecSpecificData(NULL),