summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/AACExtractor.cpp
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2015-12-20 23:19:52 -0500
committerSteve Kondik <steve@cyngn.com>2015-12-20 23:19:52 -0500
commitd3c005d58c4064b647f1cb8998e5b557e79aa521 (patch)
tree61fdefa8899da095ec500304beb126b34390f745 /media/libstagefright/AACExtractor.cpp
parente9990d5c032e2a29de51e1a361df409f269194c2 (diff)
downloadframeworks_av-d3c005d58c4064b647f1cb8998e5b557e79aa521.zip
frameworks_av-d3c005d58c4064b647f1cb8998e5b557e79aa521.tar.gz
frameworks_av-d3c005d58c4064b647f1cb8998e5b557e79aa521.tar.bz2
stagefright: Fix AAC profile selection
* Be consistent about AAC profile selection in both Stagefright an our custom plugin. * Also fix duplication in the override code. Change-Id: I9d2724ea8861bc9d7db6a100a2f633f81d243c6c
Diffstat (limited to 'media/libstagefright/AACExtractor.cpp')
-rw-r--r--media/libstagefright/AACExtractor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/AACExtractor.cpp b/media/libstagefright/AACExtractor.cpp
index 2115eb4..1764541 100644
--- a/media/libstagefright/AACExtractor.cpp
+++ b/media/libstagefright/AACExtractor.cpp
@@ -167,7 +167,7 @@ AACExtractor::AACExtractor(
channel = (header[0] & 0x1) << 2 | (header[1] >> 6);
mMeta = MakeAACCodecSpecificData(profile, sf_index, channel);
- mMeta->setInt32(kKeyAACAOT, profile + 1);
+ mMeta->setInt32(kKeyAACAOT, profile);
off64_t streamSize, numFrames = 0;
size_t frameSize = 0;