summaryrefslogtreecommitdiffstats
path: root/media/base/media_switches.cc
diff options
context:
space:
mode:
authordalecurtis@chromium.org <dalecurtis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-12 16:18:29 +0000
committerdalecurtis@chromium.org <dalecurtis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-12 16:18:29 +0000
commitcd4186fcba54ce17d0c16467fdb8835286aa466f (patch)
treebbb85fe577a635f01f6aa351e0213341cb2256ec /media/base/media_switches.cc
parente3c8c99c74892e6370a896d1dfef6ce92866886e (diff)
downloadchromium_src-cd4186fcba54ce17d0c16467fdb8835286aa466f.zip
chromium_src-cd4186fcba54ce17d0c16467fdb8835286aa466f.tar.gz
chromium_src-cd4186fcba54ce17d0c16467fdb8835286aa466f.tar.bz2
Introduce ADTSStreamParser. Factorize MP3StreamParser and tests.
Factorizes MP3StreamParser into MPEGAudioStreamParserBase for reuse with a new ADTSStreamParser. In the process, also factorizes the MP3StreamParserTest into a new test helper StreamParserTest for reuse with the ADTSStreamParserTest. Introduces an adts_constants.{cc,h} to remove duplicate constants across the AAC and ES ADTS parsers. Fixes a channel layout bug in the AAC parser. sfx.adts test file will be landed manually in a separate change. BUG=341648,340426 TEST=new unittests pass! Review URL: https://codereview.chromium.org/120503006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250730 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/media_switches.cc')
-rw-r--r--media/base/media_switches.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/media/base/media_switches.cc b/media/base/media_switches.cc
index 9ea08a1..7377fb9 100644
--- a/media/base/media_switches.cc
+++ b/media/base/media_switches.cc
@@ -18,6 +18,9 @@ const char kDisableVp8AlphaPlayback[] = "disable-vp8-alpha-playback";
// Set number of threads to use for video decoding.
const char kVideoThreads[] = "video-threads";
+// Enables ADTS stream parser for Media Source Extensions.
+const char kEnableADTSStreamParser[] = "enable-adts-stream-parser";
+
// Enables MP3 stream parser for Media Source Extensions.
const char kEnableMP3StreamParser[] = "enable-mp3-stream-parser";