Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1156)

Unified Diff: webrtc/media/base/codec.cc

Issue 2854123003: Build WebRTC with data channel only. (Closed)
Patch Set: Add an end to end test for libjingle_peerconnection_datachannel_only. Make it 2.37Mb. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/media/base/codec.cc
diff --git a/webrtc/media/base/codec.cc b/webrtc/media/base/codec.cc
index 1e305a60b71369e41b797e6b388f15b33f0f7438..7da1de69033151b6724930d36dd92db765b948f8 100644
--- a/webrtc/media/base/codec.cc
+++ b/webrtc/media/base/codec.cc
@@ -23,6 +23,7 @@ namespace cricket {
static bool IsSameH264Profile(const CodecParameterMap& params1,
const CodecParameterMap& params2) {
+#if defined(HAVE_WEBRTC_VOICE) && defined(HAVE_WEBRTC_VIDEO)
const rtc::Optional<webrtc::H264::ProfileLevelId> profile_level_id =
webrtc::H264::ParseSdpProfileLevelId(params1);
const rtc::Optional<webrtc::H264::ProfileLevelId> other_profile_level_id =
@@ -30,6 +31,9 @@ static bool IsSameH264Profile(const CodecParameterMap& params1,
// Compare H264 profiles, but not levels.
return profile_level_id && other_profile_level_id &&
profile_level_id->profile == other_profile_level_id->profile;
+#else
+ return false;
+#endif
}
bool FeedbackParam::operator==(const FeedbackParam& other) const {
« webrtc/media/BUILD.gn ('K') | « webrtc/media/BUILD.gn ('k') | webrtc/pc/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698