| Index: webrtc/common_types.cc
|
| diff --git a/webrtc/common_types.cc b/webrtc/common_types.cc
|
| index a76175fbd90d3fcb1b86d3367e53d43d11db8b6f..e45ffea57ca90e4224dd801a1d54dc04b8c43225 100644
|
| --- a/webrtc/common_types.cc
|
| +++ b/webrtc/common_types.cc
|
| @@ -101,12 +101,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;
|
| }
|
|
|
| @@ -127,6 +127,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;
|
| @@ -148,6 +149,8 @@ rtc::Optional<const char*> CodecTypeToPayloadName(VideoCodecType type) {
|
| return rtc::Optional<const char*>(kPayloadNameULPFEC);
|
| case kVideoCodecGeneric:
|
| return rtc::Optional<const char*>(kPayloadNameGeneric);
|
| + case kVideoCodecStereo:
|
| + return rtc::Optional<const char*>(kPayloadNameStereo);
|
| default:
|
| return rtc::Optional<const char*>();
|
| }
|
| @@ -168,6 +171,8 @@ rtc::Optional<VideoCodecType> PayloadNameToCodecType(const std::string& name) {
|
| return rtc::Optional<VideoCodecType>(kVideoCodecULPFEC);
|
| if (CodecNamesEq(name.c_str(), kPayloadNameGeneric))
|
| return rtc::Optional<VideoCodecType>(kVideoCodecGeneric);
|
| + if (CodecNamesEq(name.c_str(), kPayloadNameStereo))
|
| + return rtc::Optional<VideoCodecType>(kVideoCodecStereo);
|
| return rtc::Optional<VideoCodecType>();
|
| }
|
|
|
|
|