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

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

Issue 2347863003: H264 codec: Check profile-level-id when matching (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | webrtc/media/base/codec.cc » ('j') | webrtc/media/base/codec.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/base/codec.h
diff --git a/webrtc/media/base/codec.h b/webrtc/media/base/codec.h
index 76a623a0de8af540da8eeb777c18437ad9fdd352..26bf79155b86e3958d11ce6e76d8aedf9935e010 100644
--- a/webrtc/media/base/codec.h
+++ b/webrtc/media/base/codec.h
@@ -81,6 +81,10 @@ struct Codec {
// Find the parameter for |name| and write the value to |out|.
bool GetParam(const std::string& name, std::string* out) const;
bool GetParam(const std::string& name, int* out) const;
+ // Return the contained value for |name| if available, and |default_value|
+ // otherwise.
+ std::string GetParam(const std::string& name,
+ const std::string& default_value) const;
hta-webrtc 2016/09/19 06:38:36 Suggest not having this function. I've had this pa
magjed_webrtc 2016/09/19 12:40:30 Ok, I removed it from the public interface and mad
void SetParam(const std::string& name, const std::string& value);
void SetParam(const std::string& name, int value);
@@ -155,6 +159,9 @@ struct VideoCodec : public Codec {
VideoCodec(const VideoCodec& c);
virtual ~VideoCodec() = default;
+ // Indicates if this codec is compatible with the specified codec.
+ bool Matches(const VideoCodec& codec) const;
+
std::string ToString() const;
VideoCodec& operator=(const VideoCodec& c);
« no previous file with comments | « no previous file | webrtc/media/base/codec.cc » ('j') | webrtc/media/base/codec.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698