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);