summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author James Dong <jdong@google.com> 2010-10-21 17:58:14 -0700
committer James Dong <jdong@google.com> 2010-10-21 18:41:31 -0700
commit89a0104c7cd20ffe19d80714f627463b4929c5fc (patch)
tree2c517551372ce2dfe55a60bfa81d93e1168428b8
parent7dc08fb070ff7455e794fc81645ccb4349cd152f (diff)
Turn the media time adjustment in file writer back on
o This was turned off to unblock the tests on some device o The adjustment duration is increased to suppress fluctuations observed on some device bug - 3058745 Change-Id: Iaeeb1c1c52783f5c679305645c995e57b4b2a573
-rw-r--r--media/libstagefright/MPEG4Writer.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/media/libstagefright/MPEG4Writer.cpp b/media/libstagefright/MPEG4Writer.cpp
index 90b104a29622..a15c2741352c 100644
--- a/media/libstagefright/MPEG4Writer.cpp
+++ b/media/libstagefright/MPEG4Writer.cpp
@@ -41,7 +41,10 @@ namespace android {
static const int64_t kMax32BitFileSize = 0x007fffffffLL;
static const uint8_t kNalUnitTypeSeqParamSet = 0x07;
static const uint8_t kNalUnitTypePicParamSet = 0x08;
-static const int64_t kVideoMediaTimeAdjustPeriodTimeUs = 10000000LL; // 10s
+
+// Using longer adjustment period to suppress fluctuations in
+// the audio encoding paths
+static const int64_t kVideoMediaTimeAdjustPeriodTimeUs = 600000000LL; // 10 minutes
class MPEG4Writer::Track {
public:
@@ -1175,7 +1178,7 @@ status_t MPEG4Writer::Track::start(MetaData *params) {
startTimeUs = 0;
}
- mIsRealTimeRecording = false;
+ mIsRealTimeRecording = true;
{
int32_t isNotRealTime;
if (params && params->findInt32(kKeyNotRealTime, &isNotRealTime)) {