From 29ceddd23df645a9af851b9f4df349259b4c19f5 Mon Sep 17 00:00:00 2001 From: xgj Date: Fri, 1 Apr 2022 19:15:35 +0800 Subject: [PATCH] fix startsendrtp pt error --- server/WebApi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/WebApi.cpp b/server/WebApi.cpp index 63d8816e..4bf7a9fb 100755 --- a/server/WebApi.cpp +++ b/server/WebApi.cpp @@ -1104,7 +1104,7 @@ void installWebApi() { if (!src) { throw ApiRetException("该媒体流不存在", API::OtherFailed); } - uint8_t pt = allArgs["pt"].empty() ? 96 : allArgs["pt"].as(); + uint8_t pt = allArgs["pt"].empty() ? 96 : allArgs["pt"].as(); bool use_ps = allArgs["use_ps"].empty() ? true : allArgs["use_ps"].as(); bool only_audio = allArgs["only_audio"].empty() ? true : allArgs["only_audio"].as(); TraceL << "pt "<