summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRockchip2015-10-20 15:13:25 +0800
committerRockchip2015-10-20 15:13:25 +0800
commit23a67e9c19abbf094a5354cca604ade29144f5b7 (patch)
tree52b47e88e1f32010316f099513a0b062e7c89f9e
parentf0bacb40471d554cb8d4faf1bd9d2c5841bd1007 (diff)
sf:optimize the rate of MPEG4Write for only one trackrk32/mid/5.1/develop
-rw-r--r--media/libstagefright/MPEG4Writer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/MPEG4Writer.cpp b/media/libstagefright/MPEG4Writer.cpp
index 9f20b1d..83db1a2 100644
--- a/media/libstagefright/MPEG4Writer.cpp
+++ b/media/libstagefright/MPEG4Writer.cpp
@@ -2077,7 +2077,7 @@ void MPEG4Writer::Track::updateDriftTime(const sp<MetaData>& meta) {
status_t MPEG4Writer::Track::threadEntry() {
int32_t count = 0;
const int64_t interleaveDurationUs = mOwner->interleaveDuration();
- const bool hasMultipleTracks = (mOwner->numTracks() > 1);
+ const bool hasMultipleTracks = (mOwner->numTracks() >= 1);
int64_t chunkTimestampUs = 0;
int32_t nChunks = 0;
int32_t nZeroLengthFrames = 0;