summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2010-10-04 16:41:53 -0700
committerJames Dong <jdong@google.com>2010-10-04 16:54:59 -0700
commit6a9e39ac55b32a2847546ef1784c2d6c91863a55 (patch)
tree62d33aedf7875659cd5cea087c563e50a3afd065 /include
parenta29643a6455df7d3d615cdc45e11c437fe4b6cee (diff)
downloadframeworks_base-6a9e39ac55b32a2847546ef1784c2d6c91863a55.zip
frameworks_base-6a9e39ac55b32a2847546ef1784c2d6c91863a55.tar.gz
frameworks_base-6a9e39ac55b32a2847546ef1784c2d6c91863a55.tar.bz2
Fixed an issue where the reserved free space in the file writer was larger than intended
The problem was that even though user does not explicitly request the max file size limit via MediaRecorder.setMaxFileSize(), the file writer sets an implicit file size limit if 32-bit file offset is used on user's behalf. The reserved free space is estimated based on the file size, if the file size limit is set by the user. The fix is to add an extra bool to tell the difference between an explit requested file size and an implicit file limit and use that to set the estimated moov box size accordingly. Change-Id: I731aca6c7833aa764ed7b905edb77721577471b3
Diffstat (limited to 'include')
-rw-r--r--include/media/stagefright/MPEG4Writer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/media/stagefright/MPEG4Writer.h b/include/media/stagefright/MPEG4Writer.h
index 70bd8e8..cff38b2 100644
--- a/include/media/stagefright/MPEG4Writer.h
+++ b/include/media/stagefright/MPEG4Writer.h
@@ -64,6 +64,7 @@ private:
FILE *mFile;
bool mUse4ByteNalLength;
bool mUse32BitOffset;
+ bool mIsFileSizeLimitExplicitlyRequested;
bool mPaused;
bool mStarted;
off_t mOffset;