summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/AACExtractor.cpp
diff options
context:
space:
mode:
authorArulselvan M <arulselvan.m@intel.com>2012-12-03 15:58:44 +0530
committerSteve Kondik <steve@cyngn.com>2015-10-23 12:38:46 -0500
commit64718dbe0e1ab4a1acec09f28db83f2838fdfe1f (patch)
tree467ef2ffa79f768adf9ae361ad9d5b9ddb220fc3 /media/libstagefright/AACExtractor.cpp
parentf939831843ffa12bfc7851c3ef805835f2f8fdae (diff)
downloadframeworks_av-64718dbe0e1ab4a1acec09f28db83f2838fdfe1f.zip
frameworks_av-64718dbe0e1ab4a1acec09f28db83f2838fdfe1f.tar.gz
frameworks_av-64718dbe0e1ab4a1acec09f28db83f2838fdfe1f.tar.bz2
Can't play AAC file with ID3 tag.
When the file is scanned, the ID3 tag is found to have a footer at the end of audio data. And getAdtsFrameLength return zero after reading the footer. As a result, the duration and mInitCheck are not set. The current change considers the data till footer and sets the duration based on no. of frames read till the footer/corrupt frame. Change-Id: Ie8f898435f0d4ca31fdd355146c4db7b37c0b988 Signed-off-by: Arulselvan M <arulselvan.m@intel.com> Signed-off-by: Jin Wei <wei.a.jin@intel.com>
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 45e8a30..f6434b4 100644
--- a/media/libstagefright/AACExtractor.cpp
+++ b/media/libstagefright/AACExtractor.cpp
@@ -174,7 +174,7 @@ AACExtractor::AACExtractor(
if (mDataSource->getSize(&streamSize) == OK) {
while (offset < streamSize) {
if ((frameSize = getAdtsFrameLength(source, offset, NULL)) == 0) {
- return;
+ break;
}
mOffsetVector.push(offset);