| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2011 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #include "webrtc/pc/webrtcsdp.h" | 11 #include "webrtc/pc/webrtcsdp.h" |
| 12 | 12 |
| 13 #include <ctype.h> | 13 #include <ctype.h> |
| 14 #include <limits.h> | 14 #include <limits.h> |
| 15 #include <stdio.h> | 15 #include <stdio.h> |
| 16 | 16 |
| 17 #include <algorithm> | 17 #include <algorithm> |
| 18 #include <memory> | 18 #include <memory> |
| 19 #include <string> | 19 #include <string> |
| 20 #include <unordered_map> | 20 #include <unordered_map> |
| 21 #include <vector> | 21 #include <vector> |
| 22 | 22 |
| 23 #include "webrtc/api/jsepicecandidate.h" | 23 #include "webrtc/api/jsepicecandidate.h" |
| 24 #include "webrtc/api/jsepsessiondescription.h" | 24 #include "webrtc/api/jsepsessiondescription.h" |
| 25 #include "webrtc/rtc_base/arraysize.h" | |
| 26 #include "webrtc/rtc_base/checks.h" | |
| 27 #include "webrtc/rtc_base/logging.h" | |
| 28 #include "webrtc/rtc_base/messagedigest.h" | |
| 29 #include "webrtc/rtc_base/stringutils.h" | |
| 30 // for RtpExtension | 25 // for RtpExtension |
| 31 #include "webrtc/config.h" | 26 #include "webrtc/api/rtpparameters.h" |
| 32 #include "webrtc/media/base/codec.h" | 27 #include "webrtc/media/base/codec.h" |
| 33 #include "webrtc/media/base/cryptoparams.h" | 28 #include "webrtc/media/base/cryptoparams.h" |
| 34 #include "webrtc/media/base/mediaconstants.h" | 29 #include "webrtc/media/base/mediaconstants.h" |
| 35 #include "webrtc/media/base/rtputils.h" | 30 #include "webrtc/media/base/rtputils.h" |
| 36 #include "webrtc/media/sctp/sctptransportinternal.h" | 31 #include "webrtc/media/sctp/sctptransportinternal.h" |
| 37 #include "webrtc/p2p/base/candidate.h" | 32 #include "webrtc/p2p/base/candidate.h" |
| 38 #include "webrtc/p2p/base/p2pconstants.h" | 33 #include "webrtc/p2p/base/p2pconstants.h" |
| 39 #include "webrtc/p2p/base/port.h" | 34 #include "webrtc/p2p/base/port.h" |
| 40 #include "webrtc/pc/mediasession.h" | 35 #include "webrtc/pc/mediasession.h" |
| 36 #include "webrtc/rtc_base/arraysize.h" |
| 37 #include "webrtc/rtc_base/checks.h" |
| 38 #include "webrtc/rtc_base/logging.h" |
| 39 #include "webrtc/rtc_base/messagedigest.h" |
| 40 #include "webrtc/rtc_base/stringutils.h" |
| 41 | 41 |
| 42 using cricket::AudioContentDescription; | 42 using cricket::AudioContentDescription; |
| 43 using cricket::Candidate; | 43 using cricket::Candidate; |
| 44 using cricket::Candidates; | 44 using cricket::Candidates; |
| 45 using cricket::ContentDescription; | 45 using cricket::ContentDescription; |
| 46 using cricket::ContentInfo; | 46 using cricket::ContentInfo; |
| 47 using cricket::CryptoParams; | 47 using cricket::CryptoParams; |
| 48 using cricket::DataContentDescription; | 48 using cricket::DataContentDescription; |
| 49 using cricket::ICE_CANDIDATE_COMPONENT_RTP; | 49 using cricket::ICE_CANDIDATE_COMPONENT_RTP; |
| 50 using cricket::ICE_CANDIDATE_COMPONENT_RTCP; | 50 using cricket::ICE_CANDIDATE_COMPONENT_RTCP; |
| (...skipping 3276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3327 UpdateCodec<AudioContentDescription, cricket::AudioCodec>( | 3327 UpdateCodec<AudioContentDescription, cricket::AudioCodec>( |
| 3328 media_desc, payload_type, feedback_param); | 3328 media_desc, payload_type, feedback_param); |
| 3329 } else if (media_type == cricket::MEDIA_TYPE_VIDEO) { | 3329 } else if (media_type == cricket::MEDIA_TYPE_VIDEO) { |
| 3330 UpdateCodec<VideoContentDescription, cricket::VideoCodec>( | 3330 UpdateCodec<VideoContentDescription, cricket::VideoCodec>( |
| 3331 media_desc, payload_type, feedback_param); | 3331 media_desc, payload_type, feedback_param); |
| 3332 } | 3332 } |
| 3333 return true; | 3333 return true; |
| 3334 } | 3334 } |
| 3335 | 3335 |
| 3336 } // namespace webrtc | 3336 } // namespace webrtc |
| OLD | NEW |