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

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

Issue 2854123003: Build WebRTC with data channel only. (Closed)
Patch Set: More modular apporach. Proof of concept. Need more work. 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..c76b8003db33d695f3c1257e1d6822677f012c79 100644
--- a/webrtc/media/base/codec.cc
+++ b/webrtc/media/base/codec.cc
@@ -21,16 +21,8 @@
namespace cricket {
-static bool IsSameH264Profile(const CodecParameterMap& params1,
- const CodecParameterMap& params2) {
- const rtc::Optional<webrtc::H264::ProfileLevelId> profile_level_id =
- webrtc::H264::ParseSdpProfileLevelId(params1);
- const rtc::Optional<webrtc::H264::ProfileLevelId> other_profile_level_id =
- webrtc::H264::ParseSdpProfileLevelId(params2);
- // Compare H264 profiles, but not levels.
- return profile_level_id && other_profile_level_id &&
- profile_level_id->profile == other_profile_level_id->profile;
-}
+bool IsSameH264Profile(const CodecParameterMap& params1,
+ const CodecParameterMap& params2);
bool FeedbackParam::operator==(const FeedbackParam& other) const {
return _stricmp(other.id().c_str(), id().c_str()) == 0 &&

Powered by Google App Engine
This is Rietveld 408576698