summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/VideoModule.java
diff options
context:
space:
mode:
authorSanthosh Behara <santhoshbehara@codeaurora.org>2016-05-19 11:55:09 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2016-05-27 13:22:57 -0700
commit1bb8f05ca58e028519541cc857375171b1fbb55e (patch)
treed4600359133f5564bd6dd9cf37acfe8c2e3675ec /src/com/android/camera/VideoModule.java
parentb663982c9042cb57150bf86bc8ad84b476581538 (diff)
downloadandroid_packages_apps_Snap-1bb8f05ca58e028519541cc857375171b1fbb55e.tar.gz
android_packages_apps_Snap-1bb8f05ca58e028519541cc857375171b1fbb55e.tar.bz2
android_packages_apps_Snap-1bb8f05ca58e028519541cc857375171b1fbb55e.zip
SnapdragonCamera: Set outputFormat type as 3gp for AMR audio
When audio encoder type is of AMR then the outputFormatType should be of 3gp instead of mp4 CRs-Fixed: 1021675 Change-Id: I60645c091ea026bd50f56407c0afbc2638d529f1
Diffstat (limited to 'src/com/android/camera/VideoModule.java')
-rw-r--r--src/com/android/camera/VideoModule.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java
index cbfe7b94a..7e3b8f9c6 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -1487,6 +1487,10 @@ public class VideoModule implements CameraModule,
mProfile.audioCodec = mAudioEncoder;
mProfile.duration = mMaxVideoDurationInMs;
+ if ((mProfile.audioCodec == MediaRecorder.AudioEncoder.AMR_NB) &&
+ !mCaptureTimeLapse && !isHFR) {
+ mProfile.fileFormat = MediaRecorder.OutputFormat.THREE_GPP;
+ }
// Set params individually for HFR case, as we do not want to encode audio
if ((isHFR || isHSR) && captureRate > 0) {
if (isHSR) {