summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author James Dong <jdong@google.com> 2010-09-09 10:13:08 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2010-09-09 10:13:08 -0700
commit5c43a7af7b9530016b922ddec0401ab9199cd595 (patch)
tree84771cbc7626591c29069e95508c7587cedb3985
parentab86b782fd2c8c7b1e6b50d30482aa2b8f890e80 (diff)
parenta4fb816bd59a452445114e065874d7004bdc6b0f (diff)
Merge "When 32-bit offset is used, if the requested max file size is greater than the 32-bit offset limit, set the limit to the max 32-bit offset limit." into gingerbread
-rw-r--r--media/libstagefright/MPEG4Writer.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/media/libstagefright/MPEG4Writer.cpp b/media/libstagefright/MPEG4Writer.cpp
index 806836d82c6a..de4233d3bb95 100644
--- a/media/libstagefright/MPEG4Writer.cpp
+++ b/media/libstagefright/MPEG4Writer.cpp
@@ -346,9 +346,10 @@ status_t MPEG4Writer::start(MetaData *param) {
// If file size is set to be larger than the 32 bit file
// size limit, treat it as an error.
if (mMaxFileSizeLimitBytes > kMax32BitFileSize) {
- LOGE("32-bit file size limit too big: %lld bytes",
- mMaxFileSizeLimitBytes);
- return UNKNOWN_ERROR;
+ LOGW("32-bi file size limit (%lld bytes) too big. "
+ "It is changed to %lld bytes",
+ mMaxFileSizeLimitBytes, kMax32BitFileSize);
+ mMaxFileSizeLimitBytes = kMax32BitFileSize;
}
}