From 188ee1f61a7e41db9925a74defe297f3441dd1a1 Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Sat, 19 Nov 2022 09:37:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E9=99=A4=E7=BC=96=E8=AF=91=E8=AD=A6?= =?UTF-8?q?=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/tests/server.c | 2 +- src/Rtp/TSDecoder.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/api/tests/server.c b/api/tests/server.c index 26cff400..8b283b6b 100644 --- a/api/tests/server.c +++ b/api/tests/server.c @@ -185,7 +185,7 @@ static void on_mk_webrtc_get_answer_sdp_func(void *user_data, const char *answer mk_http_response_invoker_clone_release(user_data); free(response_content); if (answer) { - free(answer); + free((void *)answer); } } /** diff --git a/src/Rtp/TSDecoder.cpp b/src/Rtp/TSDecoder.cpp index c31ddc9b..4f00ada0 100644 --- a/src/Rtp/TSDecoder.cpp +++ b/src/Rtp/TSDecoder.cpp @@ -55,7 +55,6 @@ const char *TSSegment::onSearchPacketTail(const char *data, size_t len) { #if defined(ENABLE_HLS) #include "mpeg-ts.h" -#include "mpeg-ts-proto.h" TSDecoder::TSDecoder() : _ts_segment() { _ts_segment.setOnSegment([this](const char *data, size_t len){ ts_demuxer_input(_demuxer_ctx,(uint8_t*)data,len);