From 6fad6f591f08760291403b3ec02fa5a6e4796f19 Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Tue, 20 Sep 2022 16:00:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=90=AF=E7=AC=AC=E4=B8=89=E6=96=B9mp?= =?UTF-8?q?eg=E5=BA=93=E7=BC=96=E8=AF=91=E5=AE=8F=E5=BC=80=E5=85=B3?= =?UTF-8?q?=EF=BC=8C=E5=85=BC=E5=AE=B9=E6=9F=90=E4=BA=9B=E5=9B=BD=E6=A0=87?= =?UTF-8?q?=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 3rdpart/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/3rdpart/CMakeLists.txt b/3rdpart/CMakeLists.txt index 5732f7a2..ff5d3065 100644 --- a/3rdpart/CMakeLists.txt +++ b/3rdpart/CMakeLists.txt @@ -90,8 +90,12 @@ if(ENABLE_RTPPROXY OR ENABLE_HLS) aux_source_directory(${MediaServer_MPEG_ROOT}/source MPEG_SRC_LIST) add_library(mpeg STATIC ${MPEG_SRC_LIST}) add_library(MediaServer::mpeg ALIAS mpeg) + # media-server库相关编译宏 + # MPEG_H26X_VERIFY - 视频流类型识别 + # MPEG_ZERO_PAYLOAD_LENGTH - 兼容hik流 + # MPEG_DAHUA_AAC_FROM_G711 - 兼容dahua流 target_compile_options(mpeg - PRIVATE ${COMPILE_OPTIONS_DEFAULT}) + PRIVATE ${COMPILE_OPTIONS_DEFAULT} -DMPEG_H26X_VERIFY -DMPEG_ZERO_PAYLOAD_LENGTH -DMPEG_DAHUA_AAC_FROM_G711) target_include_directories(mpeg PRIVATE "$"