Index: webrtc/media/base/codec.h |
diff --git a/webrtc/media/base/codec.h b/webrtc/media/base/codec.h |
index facdfefebceb6cc0be14844bf92df1dabb47c5f9..ec08c82e8079313275bc8956f785dde5b0f6d0e7 100644 |
--- a/webrtc/media/base/codec.h |
+++ b/webrtc/media/base/codec.h |
@@ -17,6 +17,7 @@ |
#include <vector> |
#include "webrtc/api/rtpparameters.h" |
+#include "webrtc/common_types.h" |
#include "webrtc/media/base/mediaconstants.h" |
namespace cricket { |
@@ -141,6 +142,8 @@ struct AudioCodec : public Codec { |
struct VideoCodec : public Codec { |
// Creates a codec with the given parameters. |
VideoCodec(int id, const std::string& name); |
+ // Creates a codec with the given name and empty id. |
+ explicit VideoCodec(const std::string& name); |
// Creates an empty codec. |
VideoCodec(); |
VideoCodec(const VideoCodec& c); |
@@ -200,6 +203,8 @@ bool FindCodecById(const std::vector<Codec>& codecs, |
} |
bool CodecNamesEq(const std::string& name1, const std::string& name2); |
+bool CodecNamesEq(const char* name1, const char* name2); |
+webrtc::VideoCodecType CodecTypeFromName(const std::string& name); |
bool HasNack(const Codec& codec); |
bool HasRemb(const Codec& codec); |
bool HasTransportCc(const Codec& codec); |