Chromium Code Reviews| Index: webrtc/modules/audio_coding/codecs/audio_format.cc |
| diff --git a/webrtc/modules/audio_coding/codecs/audio_format.cc b/webrtc/modules/audio_coding/codecs/audio_format.cc |
| index 86d5d800422893f95e55f2e890468e4cc4a9448e..e764d773a740a2f63aa625606ae65a4a7dc1084d 100644 |
| --- a/webrtc/modules/audio_coding/codecs/audio_format.cc |
| +++ b/webrtc/modules/audio_coding/codecs/audio_format.cc |
| @@ -33,6 +33,11 @@ SdpAudioFormat::~SdpAudioFormat() = default; |
| SdpAudioFormat& SdpAudioFormat::operator=(const SdpAudioFormat&) = default; |
| SdpAudioFormat& SdpAudioFormat::operator=(SdpAudioFormat&&) = default; |
| +bool operator==(const SdpAudioFormat& a, const SdpAudioFormat& b) { |
| + return a.name == b.name && a.clockrate_hz == b.clockrate_hz && |
| + a.num_channels == b.num_channels && a.parameters == b.parameters; |
|
kwiberg-webrtc
2016/09/20 15:21:00
Should the .name comparison be case-insensitive?
ossu
2016/09/20 15:30:55
I think it should. We're doing case-insensitive ma
kwiberg-webrtc
2016/09/20 16:30:29
Done.
|
| +} |
| + |
| void swap(SdpAudioFormat& a, SdpAudioFormat& b) { |
| using std::swap; |
| swap(a.name, b.name); |