We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d44600 commit d3dfc4fCopy full SHA for d3dfc4f
samples/videoDecodeBatch/CMakeLists.txt
@@ -90,6 +90,12 @@ if(HIP_FOUND AND FFMPEG_FOUND AND ROCDECODE_FOUND)
90
add_executable(${PROJECT_NAME} ${SOURCES})
91
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++17")
92
target_link_libraries(${PROJECT_NAME} ${LINK_LIBRARY_LIST})
93
+ # FFMPEG multi-version support
94
+ if(_FFMPEG_AVCODEC_VERSION VERSION_LESS_EQUAL 58.134.100)
95
+ target_compile_definitions(${PROJECT_NAME} PUBLIC USE_AVCODEC_GREATER_THAN_58_134=0)
96
+ else()
97
+ target_compile_definitions(${PROJECT_NAME} PUBLIC USE_AVCODEC_GREATER_THAN_58_134=1)
98
+ endif()
99
else()
100
message("-- ERROR!: ${PROJECT_NAME} excluded! please install all the dependencies and try again!")
101
if (NOT HIP_FOUND)
0 commit comments