Use Abseil container algorithms in pc/

Bug: None
Change-Id: If784461b54d95bdc6f8a7d4e5d1bbfa52d1a390e
Reviewed-on: https://webrtc-review.googlesource.com/c/119862
Commit-Queue: Steve Anton <steveanton@webrtc.org>
Reviewed-by: Amit Hilbuch <amithi@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#26433}
diff --git a/pc/sdp_serializer.cc b/pc/sdp_serializer.cc
index 8b0d696..482dd07 100644
--- a/pc/sdp_serializer.cc
+++ b/pc/sdp_serializer.cc
@@ -10,11 +10,11 @@
 
 #include "pc/sdp_serializer.h"
 
-#include <algorithm>
 #include <string>
 #include <utility>
 #include <vector>
 
+#include "absl/algorithm/container.h"
 #include "api/jsep.h"
 #include "rtc_base/checks.h"
 #include "rtc_base/string_encode.h"
@@ -166,8 +166,7 @@
     }
 
     // Check if the value already appears in the payload list.
-    if (std::find(payload_types.begin(), payload_types.end(), value.value()) !=
-        payload_types.end()) {
+    if (absl::c_linear_search(payload_types, value.value())) {
       return ParseError("Duplicate payload type in list: " + payload_type);
     }
     payload_types.push_back(value.value());