am cb51115c: am 5587bb7e: Merge "Interleave the audio and video by default - default interleave duration is set to 1 second" into gingerbread
Merge commit 'cb51115cca81ba47d00aa344f6ed16d1056b056b' * commit 'cb51115cca81ba47d00aa344f6ed16d1056b056b': Interleave the audio and video by default
This commit is contained in:
@@ -1036,8 +1036,10 @@ status_t StagefrightRecorder::startMPEG4Recording() {
|
||||
totalBitRate += mVideoBitRate;
|
||||
}
|
||||
|
||||
reinterpret_cast<MPEG4Writer *>(writer.get())->
|
||||
setInterleaveDuration(mInterleaveDurationUs);
|
||||
if (mInterleaveDurationUs > 0) {
|
||||
reinterpret_cast<MPEG4Writer *>(writer.get())->
|
||||
setInterleaveDuration(mInterleaveDurationUs);
|
||||
}
|
||||
|
||||
if (mMaxFileDurationUs != 0) {
|
||||
writer->setMaxFileDuration(mMaxFileDurationUs);
|
||||
|
||||
@@ -145,7 +145,7 @@ MPEG4Writer::MPEG4Writer(const char *filename)
|
||||
mOffset(0),
|
||||
mMdatOffset(0),
|
||||
mEstimatedMoovBoxSize(0),
|
||||
mInterleaveDurationUs(500000) {
|
||||
mInterleaveDurationUs(1000000) {
|
||||
CHECK(mFile != NULL);
|
||||
}
|
||||
|
||||
@@ -157,7 +157,7 @@ MPEG4Writer::MPEG4Writer(int fd)
|
||||
mOffset(0),
|
||||
mMdatOffset(0),
|
||||
mEstimatedMoovBoxSize(0),
|
||||
mInterleaveDurationUs(500000) {
|
||||
mInterleaveDurationUs(1000000) {
|
||||
CHECK(mFile != NULL);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user