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; |
} |
} |