mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +08:00
开启第三方mpeg库编译宏开关,兼容某些国标流
This commit is contained in:
parent
b77c19c969
commit
6fad6f591f
@ -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>"
|
||||||
|
Loading…
Reference in New Issue
Block a user