消除编译警告

This commit is contained in:
ziyue 2022-11-19 09:37:49 +08:00
parent 68948288e0
commit 188ee1f61a
2 changed files with 1 additions and 2 deletions

View File

@ -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); mk_http_response_invoker_clone_release(user_data);
free(response_content); free(response_content);
if (answer) { if (answer) {
free(answer); free((void *)answer);
} }
} }
/** /**

View File

@ -55,7 +55,6 @@ const char *TSSegment::onSearchPacketTail(const char *data, size_t len) {
#if defined(ENABLE_HLS) #if defined(ENABLE_HLS)
#include "mpeg-ts.h" #include "mpeg-ts.h"
#include "mpeg-ts-proto.h"
TSDecoder::TSDecoder() : _ts_segment() { TSDecoder::TSDecoder() : _ts_segment() {
_ts_segment.setOnSegment([this](const char *data, size_t len){ _ts_segment.setOnSegment([this](const char *data, size_t len){
ts_demuxer_input(_demuxer_ctx,(uint8_t*)data,len); ts_demuxer_input(_demuxer_ctx,(uint8_t*)data,len);