summaryrefslogtreecommitdiffstats
path: root/include/media/stagefright/MPEG4Writer.h
diff options
context:
space:
mode:
authorJohannes Carlsson <johannes.carlsson.x@sonymobile.com>2012-03-08 11:06:13 +0100
committerJohan Redestig <johan.redestig@sonymobile.com>2012-07-30 14:52:08 +0200
commitefcdf187baab9ec29e12adcf85e63fe3e6d5aa4d (patch)
treed85166122a684b6020e166d4e3bb005c5285db13 /include/media/stagefright/MPEG4Writer.h
parentffb829430ff20ccd6c13e6ed894f2373b2d93939 (diff)
downloadframeworks_av-efcdf187baab9ec29e12adcf85e63fe3e6d5aa4d.zip
frameworks_av-efcdf187baab9ec29e12adcf85e63fe3e6d5aa4d.tar.gz
frameworks_av-efcdf187baab9ec29e12adcf85e63fe3e6d5aa4d.tar.bz2
Store correct time stamps in recorded mp4 files
According to the specification (ISO_IEC_14496-12_2008 page 17, 19 and 21) the time is "in seconds since midnight, Jan. 1, 1904, in UTC time" which is not the same as Unix epoch time. This is already correctly handled in MPEG4Extractor.cpp when reading files. The specification also supports 64 bit timestamps which would make it a bit more future proof, but unfortunately it seems like support for this in players are poor (tested both Windows media player and Quicktime player). Change-Id: I102d728f098b8b0a21013956f017b0c4f2d69112
Diffstat (limited to 'include/media/stagefright/MPEG4Writer.h')
-rw-r--r--include/media/stagefright/MPEG4Writer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/media/stagefright/MPEG4Writer.h b/include/media/stagefright/MPEG4Writer.h
index cd4e129..3596b38 100644
--- a/include/media/stagefright/MPEG4Writer.h
+++ b/include/media/stagefright/MPEG4Writer.h
@@ -186,6 +186,8 @@ private:
void release();
status_t reset();
+ static uint32_t getMpeg4Time();
+
MPEG4Writer(const MPEG4Writer &);
MPEG4Writer &operator=(const MPEG4Writer &);
};