From 113cdc07a29a741ea6cb845551917e6c3c0a3eae Mon Sep 17 00:00:00 2001 From: Leena Winterrowd Date: Wed, 10 Sep 2014 15:12:28 -0700 Subject: 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 --- include/media/stagefright/MPEG4Writer.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') 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(); -- cgit v1.1