commit | 1ac1638077277de52d1dd4c54db71e67753f1960 | [log] [tgz] |
---|---|---|
author | Robert Shih <robertshih@google.com> | Mon Mar 10 17:05:01 2014 -0700 |
committer | Robert Shih <robertshih@google.com> | Mon Mar 10 17:21:07 2014 -0700 |
tree | ddb1190c55c887f87335573ef3cbc36cddff4a46 | |
parent | 00133aee1cb52d8acdafd77ffb25dbe5677ff748 [diff] |
M3UParser: trim spaces when parsing comma separated codecs. Bug: 13402087 Change-Id: Idc92716bfefd6d1b0cb371d0d97d990d53288090
diff --git a/media/libstagefright/httplive/M3UParser.cpp b/media/libstagefright/httplive/M3UParser.cpp index 587a6d5..87918c8 100644 --- a/media/libstagefright/httplive/M3UParser.cpp +++ b/media/libstagefright/httplive/M3UParser.cpp
@@ -365,6 +365,7 @@ codecs.append(','); while ((commaPos = codecs.find(",", offset)) >= 0) { AString codec(codecs, offset, commaPos - offset); + codec.trim(); // return true only if a codec of type `key` ("audio"/"video") // is found. if (codecIsType(codec, key)) {