summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/MPEG4Writer.cpp
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2010-09-08 15:13:36 -0700
committerJames Dong <jdong@google.com>2010-09-08 17:56:11 -0700
commitd2518e0c0a5bffd30b0dccb04fe7bf5b77c354b1 (patch)
tree62277a95250dfb30e7e368a2c39c3a5686d0ba7b /media/libstagefright/MPEG4Writer.cpp
parentf9c0ae8474dc7180a561ed1e7a8ba3d0d31f6d38 (diff)
downloadframeworks_av-d2518e0c0a5bffd30b0dccb04fe7bf5b77c354b1.zip
frameworks_av-d2518e0c0a5bffd30b0dccb04fe7bf5b77c354b1.tar.gz
frameworks_av-d2518e0c0a5bffd30b0dccb04fe7bf5b77c354b1.tar.bz2
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. Change-Id: Ie74cbed98469721d4280a0b87491e888948f0046
Diffstat (limited to 'media/libstagefright/MPEG4Writer.cpp')
-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 806836d..de4233d 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;
}
}