修复clang下编译警告和错误

This commit is contained in:
xiongziliang
2021-05-08 19:33:51 +08:00
parent e81d91988d
commit 0377796c03
6 changed files with 10 additions and 11 deletions

View File

@@ -667,7 +667,7 @@ static void changeRtpExtId(const RtpPacket::Ptr &rtp, const Type &map) {
auto header = rtp->getHeader();
auto ext_map = RtpExt::getExtValue(header);
for (auto &pr : ext_map) {
auto it = map.find((Type::key_type) pr.first);
auto it = map.find((typename Type::key_type) (pr.first));
if (it == map.end()) {
WarnL << "未处理的rtp ext, 类型不识别:" << (int) pr.first;
pr.second.clearExt();