Index: webrtc/media/base/codec.cc |
diff --git a/webrtc/media/base/codec.cc b/webrtc/media/base/codec.cc |
index 75e5a7bf71d7574f203a63c659ece7b86b75135c..835cf77b3e77a87e3e31e7df747e09300cbd363b 100644 |
--- a/webrtc/media/base/codec.cc |
+++ b/webrtc/media/base/codec.cc |
@@ -210,13 +210,10 @@ |
} |
VideoCodec::VideoCodec(int id, const std::string& name) |
- : Codec(id, name, kVideoCodecClockrate) { |
- SetDefaultParameters(); |
-} |
- |
-VideoCodec::VideoCodec(const std::string& name) : VideoCodec(0 /* id */, name) { |
- SetDefaultParameters(); |
-} |
+ : Codec(id, name, kVideoCodecClockrate) {} |
+ |
+VideoCodec::VideoCodec(const std::string& name) |
+ : VideoCodec(0 /* id */, name) {} |
VideoCodec::VideoCodec() : Codec() { |
clockrate = kVideoCodecClockrate; |
@@ -226,16 +223,6 @@ |
VideoCodec::VideoCodec(VideoCodec&& c) = default; |
VideoCodec& VideoCodec::operator=(const VideoCodec& c) = default; |
VideoCodec& VideoCodec::operator=(VideoCodec&& c) = default; |
- |
-void VideoCodec::SetDefaultParameters() { |
- if (_stricmp(kH264CodecName, name.c_str()) == 0) { |
- // This default is set for all H.264 codecs created because |
- // that was the default before packetization mode support was added. |
- // TODO(hta): Move this to the places that create VideoCodecs from |
- // SDP or from knowledge of implementation capabilities. |
- SetParam(kH264FmtpPacketizationMode, "1"); |
- } |
-} |
bool VideoCodec::operator==(const VideoCodec& c) const { |
return Codec::operator==(c); |