summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLeena Winterrowd <lenhardw@codeaurora.org>2014-09-10 15:12:28 -0700
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:24:08 -0600
commit113cdc07a29a741ea6cb845551917e6c3c0a3eae (patch)
treecad522c9e4273c59c9ebee2abcfbf83d9a18c8e5 /include
parentfb0040833c39c77312ceacf83f3454bbaef28c9d (diff)
downloadframeworks_av-113cdc07a29a741ea6cb845551917e6c3c0a3eae.zip
frameworks_av-113cdc07a29a741ea6cb845551917e6c3c0a3eae.tar.gz
frameworks_av-113cdc07a29a741ea6cb845551917e6c3c0a3eae.tar.bz2
libstagefright: Use 3gp4 ftyp box when AMR audio is present
mp42 boxes do not support the 'damr' box type whereas 3gp4 boxes explicitly support it. Using mp42 makes clips with AMR incompliant with mpeg4 standards and unplayable by many media players. To ensure interoperability, use a 3gp4 box if the recorded clip contains AMR audio. CRs-Fixed: 721883 Change-Id: I75e3558cd5088d05d36104abfb04a3c0c1d1a4e7
Diffstat (limited to 'include')
-rw-r--r--include/media/stagefright/MPEG4Writer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/media/stagefright/MPEG4Writer.h b/include/media/stagefright/MPEG4Writer.h
index a195fe8..0cd1d57 100644
--- a/include/media/stagefright/MPEG4Writer.h
+++ b/include/media/stagefright/MPEG4Writer.h
@@ -181,6 +181,9 @@ private:
// By default, real time recording is on.
bool isRealTimeRecording() const;
+ // To use 3gp4 box for clips with AMR audio
+ bool mIsAudioAMR;
+
void lock();
void unlock();