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

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

Issue 2558453002: Revert of H.264 packetization mode 0 (try 3) (Closed)
Patch Set: Created 4 years 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 | « webrtc/media/base/codec.h ('k') | webrtc/media/engine/internalencoderfactory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « webrtc/media/base/codec.h ('k') | webrtc/media/engine/internalencoderfactory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698