| Index: common_types.cc
|
| diff --git a/common_types.cc b/common_types.cc
|
| index 59867d95c0c46faa88b22feeaa2fc5a631339c02..2c2c5238a67fbff22b0cac60a46f80dc80d5fb78 100644
|
| --- a/common_types.cc
|
| +++ b/common_types.cc
|
| @@ -111,12 +111,12 @@ const VideoCodecVP8& VideoCodec::VP8() const {
|
| }
|
|
|
| VideoCodecVP9* VideoCodec::VP9() {
|
| - RTC_DCHECK_EQ(codecType, kVideoCodecVP9);
|
| + // RTC_DCHECK_EQ(codecType, kVideoCodecVP9);
|
| return &codec_specific_.VP9;
|
| }
|
|
|
| const VideoCodecVP9& VideoCodec::VP9() const {
|
| - RTC_DCHECK_EQ(codecType, kVideoCodecVP9);
|
| + // RTC_DCHECK_EQ(codecType, kVideoCodecVP9);
|
| return codec_specific_.VP9;
|
| }
|
|
|
| @@ -137,6 +137,7 @@ static const char* kPayloadNameI420 = "I420";
|
| static const char* kPayloadNameRED = "RED";
|
| static const char* kPayloadNameULPFEC = "ULPFEC";
|
| static const char* kPayloadNameGeneric = "Generic";
|
| +static const char* kPayloadNameStereo = "stereo";
|
|
|
| static bool CodecNamesEq(const char* name1, const char* name2) {
|
| return _stricmp(name1, name2) == 0;
|
| @@ -156,6 +157,8 @@ const char* CodecTypeToPayloadString(VideoCodecType type) {
|
| return kPayloadNameRED;
|
| case kVideoCodecULPFEC:
|
| return kPayloadNameULPFEC;
|
| + case kVideoCodecStereo:
|
| + return kPayloadNameStereo;
|
| default:
|
| // Unrecognized codecs default to generic.
|
| return kPayloadNameGeneric;
|
| @@ -175,6 +178,8 @@ VideoCodecType PayloadStringToCodecType(const std::string& name) {
|
| return kVideoCodecRED;
|
| if (CodecNamesEq(name.c_str(), kPayloadNameULPFEC))
|
| return kVideoCodecULPFEC;
|
| + if (CodecNamesEq(name.c_str(), kPayloadNameStereo))
|
| + return kVideoCodecStereo;
|
| return kVideoCodecGeneric;
|
| }
|
|
|
|
|