Index: webrtc/api/webrtcsdp.cc |
diff --git a/webrtc/api/webrtcsdp.cc b/webrtc/api/webrtcsdp.cc |
index d78112c1680e86ed1b6b20d9105ca6a48a3dd74e..69a1af28adc70a077d73a10e09bb6bf663283b83 100644 |
--- a/webrtc/api/webrtcsdp.cc |
+++ b/webrtc/api/webrtcsdp.cc |
@@ -2385,8 +2385,7 @@ bool VerifyCodec(const cricket::Codec& codec) { |
// Codec has not been populated correctly unless the name has been set. This |
// can happen if an SDP has an fmtp or rtcp-fb with a payload type but doesn't |
// have a corresponding "rtpmap" line. |
- cricket::Codec default_codec; |
- return default_codec.name != codec.name; |
+ return !codec.name.empty(); |
} |
bool VerifyAudioCodecs(const AudioContentDescription* audio_desc) { |