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

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

Issue 1885473004: Adding codecs to the RtpParameters returned by an RtpSender. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Responding to review comments. Created 4 years, 8 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.h
diff --git a/webrtc/media/base/codec.h b/webrtc/media/base/codec.h
index 7476c026942761d48a4fd0172b24331a0e6931e7..1489785450781998a0583886328ffb8b5683c5d0 100644
--- a/webrtc/media/base/codec.h
+++ b/webrtc/media/base/codec.h
@@ -16,6 +16,7 @@
#include <string>
#include <vector>
+#include "webrtc/api/rtpparameters.h"
#include "webrtc/media/base/mediaconstants.h"
namespace cricket {
@@ -100,6 +101,8 @@ struct Codec {
// and |other| are kept.
void IntersectFeedbackParams(const Codec& other);
+ virtual webrtc::RtpCodecParameters ToCodecParameters() const;
+
Codec& operator=(const Codec& c);
bool operator==(const Codec& c) const;
@@ -134,6 +137,8 @@ struct AudioCodec : public Codec {
std::string ToString() const;
+ webrtc::RtpCodecParameters ToCodecParameters() const override;
+
AudioCodec& operator=(const AudioCodec& c);
bool operator==(const AudioCodec& c) const;

Powered by Google App Engine
This is Rietveld 408576698