Skip to content

Commit

Permalink
Samples: Video batch decode - FFMPEG Multiversion support (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiritigowda authored and WBobby committed Aug 12, 2024
1 parent 9d44600 commit d3dfc4f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions samples/videoDecodeBatch/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ if(HIP_FOUND AND FFMPEG_FOUND AND ROCDECODE_FOUND)
add_executable(${PROJECT_NAME} ${SOURCES})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++17")
target_link_libraries(${PROJECT_NAME} ${LINK_LIBRARY_LIST})
# FFMPEG multi-version support
if(_FFMPEG_AVCODEC_VERSION VERSION_LESS_EQUAL 58.134.100)
target_compile_definitions(${PROJECT_NAME} PUBLIC USE_AVCODEC_GREATER_THAN_58_134=0)
else()
target_compile_definitions(${PROJECT_NAME} PUBLIC USE_AVCODEC_GREATER_THAN_58_134=1)
endif()
else()
message("-- ERROR!: ${PROJECT_NAME} excluded! please install all the dependencies and try again!")
if (NOT HIP_FOUND)
Expand Down

0 comments on commit d3dfc4f

Please sign in to comment.