Enable ADTS demuxing by default in Media Source.

We now support ADTS demuxing in via src attribute, so lets enable
it for Media Source as well.

BUG=371633
TEST=existing tests

Review URL: https://codereview.chromium.org/294403002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273177 0039d316-1c4b-4281-b951-d872f2087c98
parent 2b5891c0
......@@ -1061,7 +1061,6 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
switches::kDomAutomationController,
switches::kEnableAcceleratedFixedRootBackground,
switches::kEnableAcceleratedOverflowScroll,
switches::kEnableADTSStreamParser,
switches::kEnableBeginFrameScheduling,
switches::kEnableBleedingEdgeRenderingFastPaths,
switches::kEnableCompositingForFixedPosition,
......
......@@ -12,9 +12,6 @@ const char kAudioBufferSize[] = "audio-buffer-size";
// 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";
// Bypass autodetection of the upper limit on resolution of streams that can
// be hardware decoded.
const char kIgnoreResolutionLimitsForAcceleratedVideoDecode[] =
......
......@@ -16,8 +16,6 @@ MEDIA_EXPORT extern const char kAudioBufferSize[];
MEDIA_EXPORT extern const char kVideoThreads[];
MEDIA_EXPORT extern const char kEnableADTSStreamParser[];
MEDIA_EXPORT extern const char
kIgnoreResolutionLimitsForAcceleratedVideoDecode[];
......
......@@ -3,12 +3,10 @@
// found in the LICENSE file.
#include "base/bind.h"
#include "base/command_line.h"
#include "base/test/launcher/unit_test_launcher.h"
#include "base/test/test_suite.h"
#include "build/build_config.h"
#include "media/base/media.h"
#include "media/base/media_switches.h"
#if defined(OS_ANDROID)
#include "base/android/jni_android.h"
......@@ -39,8 +37,6 @@ void TestSuiteNoAtExit::Initialize() {
// Run this here instead of main() to ensure an AtExitManager is already
// present.
media::InitializeMediaLibraryForTesting();
CommandLine* cmd_line = CommandLine::ForCurrentProcess();
cmd_line->AppendSwitch(switches::kEnableADTSStreamParser);
}
int main(int argc, char** argv) {
......
......@@ -3,12 +3,10 @@
// found in the LICENSE file.
#include "base/bind.h"
#include "base/command_line.h"
#include "base/test/launcher/unit_test_launcher.h"
#include "base/test/test_suite.h"
#include "build/build_config.h"
#include "media/base/media.h"
#include "media/base/media_switches.h"
#if defined(OS_ANDROID)
#include "base/android/jni_android.h"
......@@ -39,8 +37,6 @@ void TestSuiteNoAtExit::Initialize() {
// Run this here instead of main() to ensure an AtExitManager is already
// present.
media::InitializeMediaLibraryForTesting();
CommandLine* cmd_line = CommandLine::ForCurrentProcess();
cmd_line->AppendSwitch(switches::kEnableADTSStreamParser);
}
int main(int argc, char** argv) {
......
......@@ -317,15 +317,6 @@ static bool CheckTypeAndCodecs(
const SupportedTypeInfo& type_info = kSupportedTypeInfo[i];
if (type == type_info.type) {
if (codecs.empty()) {
#if defined(USE_PROPRIETARY_CODECS)
if (type_info.codecs == kAudioADTSCodecs &&
!CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableADTSStreamParser)) {
DVLOG(1) << "ADTSStreamParser is not enabled.";
return false;
}
#endif
const CodecInfo* codec_info = type_info.codecs[0];
if (codec_info && !codec_info->pattern &&
VerifyCodec(codec_info, audio_codecs, video_codecs)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment