开启第三方mpeg库编译宏开关,兼容某些国标流

This commit is contained in:
ziyue 2022-09-20 16:00:13 +08:00
parent b77c19c969
commit 6fad6f591f

View File

@ -90,8 +90,12 @@ if(ENABLE_RTPPROXY OR ENABLE_HLS)
aux_source_directory(${MediaServer_MPEG_ROOT}/source MPEG_SRC_LIST) aux_source_directory(${MediaServer_MPEG_ROOT}/source MPEG_SRC_LIST)
add_library(mpeg STATIC ${MPEG_SRC_LIST}) add_library(mpeg STATIC ${MPEG_SRC_LIST})
add_library(MediaServer::mpeg ALIAS mpeg) 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 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 target_include_directories(mpeg
PRIVATE PRIVATE
"$<BUILD_INTERFACE:${MediaServer_MPEG_ROOT}/include>" "$<BUILD_INTERFACE:${MediaServer_MPEG_ROOT}/include>"