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

Unified Diff: webrtc/api/webrtcsdp.cc

Issue 1880963002: Generate FMTP parameters for the H.264 codec. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Add another TODO 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
« no previous file with comments | « no previous file | webrtc/api/webrtcsdp_unittest.cc » ('j') | webrtc/media/base/mediaconstants.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/webrtcsdp.cc
diff --git a/webrtc/api/webrtcsdp.cc b/webrtc/api/webrtcsdp.cc
index 93d4acc6c3fad5fd2e2612ff22af02de2554baeb..90e0007628ff5d9b94d2bc4063f37cea71d38a52 100644
--- a/webrtc/api/webrtcsdp.cc
+++ b/webrtc/api/webrtcsdp.cc
@@ -1574,15 +1574,27 @@ void WriteFmtpParameters(const cricket::CodecParameterMap& parameters,
bool IsFmtpParam(const std::string& name) {
const char* kFmtpParams[] = {
- kCodecParamMinPTime, kCodecParamSPropStereo,
- kCodecParamStereo, kCodecParamUseInbandFec, kCodecParamUseDtx,
- kCodecParamStartBitrate, kCodecParamMaxBitrate, kCodecParamMinBitrate,
- kCodecParamMaxQuantization, kCodecParamSctpProtocol, kCodecParamSctpStreams,
- kCodecParamMaxAverageBitrate, kCodecParamMaxPlaybackRate,
- kCodecParamAssociatedPayloadType
- };
+ // TODO(hta): Split FMTP parameters apart from parameters in general.
+ // FMTP parameters are codec specific, not generic.
+ kCodecParamMinPTime,
+ kCodecParamSPropStereo,
+ kCodecParamStereo,
+ kCodecParamUseInbandFec,
+ kCodecParamUseDtx,
+ kCodecParamStartBitrate,
+ kCodecParamMaxBitrate,
+ kCodecParamMinBitrate,
+ kCodecParamMaxQuantization,
+ kCodecParamSctpProtocol,
+ kCodecParamSctpStreams,
+ kCodecParamMaxAverageBitrate,
+ kCodecParamMaxPlaybackRate,
+ kCodecParamAssociatedPayloadType,
+ cricket::kH264FmtpPacketizationMode,
+ cricket::kH264FmtpLevelAsymmetryAllowed,
+ cricket::kH264FmtpProfileLevelId};
for (size_t i = 0; i < arraysize(kFmtpParams); ++i) {
- if (_stricmp(name.c_str(), kFmtpParams[i]) == 0) {
+ if (name.compare(kFmtpParams[i]) == 0) {
juberti2 2016/04/13 20:20:58 These should be case insensitive comparisons. This
hta-webrtc 2016/04/13 20:43:58 Citation? I checked the SDP RFC, and it said "case
return true;
}
}
« no previous file with comments | « no previous file | webrtc/api/webrtcsdp_unittest.cc » ('j') | webrtc/media/base/mediaconstants.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698