diff options
author | James Dong <jdong@google.com> | 2011-03-04 11:25:17 -0800 |
---|---|---|
committer | James Dong <jdong@google.com> | 2011-03-04 11:28:50 -0800 |
commit | 2eb6a47b58c5b36f887a372e89f3d70f5d40812c (patch) | |
tree | 0790af432dfa32b214f56365de220d9083f557c3 | |
parent | 4f46fed004b76d462ef859aa94a3c056b0e79b60 (diff) | |
download | frameworks_av-2eb6a47b58c5b36f887a372e89f3d70f5d40812c.zip frameworks_av-2eb6a47b58c5b36f887a372e89f3d70f5d40812c.tar.gz frameworks_av-2eb6a47b58c5b36f887a372e89f3d70f5d40812c.tar.bz2 |
Do not enforce the rule in MP3Extractor that all audio frames in an mp3 file must have the same mode
For some mp3 files, the mode can be changed from one audio frame to another. Without
the capability to switch modes, the decoded audio may have lots of artifacts.
bug - 3253310
Change-Id: Id57bb1f204642d15e38a800c72214f6794cfaa37
-rw-r--r-- | media/libstagefright/MP3Extractor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libstagefright/MP3Extractor.cpp b/media/libstagefright/MP3Extractor.cpp index eb4c68d..03ce202 100644 --- a/media/libstagefright/MP3Extractor.cpp +++ b/media/libstagefright/MP3Extractor.cpp @@ -39,10 +39,10 @@ namespace android { // Everything must match except for -// protection, bitrate, padding, private bits, mode extension, +// protection, bitrate, padding, private bits, mode, mode extension, // copyright bit, original bit and emphasis. // Yes ... there are things that must indeed match... -static const uint32_t kMask = 0xfffe0cc0; +static const uint32_t kMask = 0xfffe0c00; // static bool MP3Extractor::get_mp3_frame_size( |