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

Commit 13210f33 authored by James Dong's avatar James Dong
Browse files

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

o also removed unused varialble mMaxTimeStampUs

Change-Id: I61a47e1ec8ee96a25df668637c4d4661188a1a8c
parent 4865aa8a
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),