Commit e8cd9b00 authored by Ghislain MARY's avatar Ghislain MARY

Fix syntax for av_frame_* symbol lookup.

parent e20ee8dd
......@@ -86,12 +86,12 @@ if(FFMPEG_LIBRARIES)
if(MSVC)
list(APPEND CMAKE_REQUIRED_DEFINITIONS -Dinline=__inline)
endif()
check_symbol_exists(avcodec_get_context_defaults3 libavcodec/avcodec.h HAVE_FUN_avcodec_get_context_defaults3)
check_symbol_exists(avcodec_open2 libavcodec/avcodec.h HAVE_FUN_avcodec_open2)
check_symbol_exists(avcodec_encode_video2 libavcodec/avcodec.h HAVE_FUN_avcodec_encode_video2)
check_symbol_exists(av_frame_alloc libavutil/avutil.h libavutil/frame.h HAVE_FUN_av_frame_alloc)
check_symbol_exists(av_frame_free libavutil/avutil.h libavutil/frame.h HAVE_FUN_av_frame_free)
check_symbol_exists(av_frame_unref libavutil/avutil.h libavutil/frame.h HAVE_FUN_av_frame_unref)
check_symbol_exists(avcodec_get_context_defaults3 "libavcodec/avcodec.h" HAVE_FUN_avcodec_get_context_defaults3)
check_symbol_exists(avcodec_open2 "libavcodec/avcodec.h" HAVE_FUN_avcodec_open2)
check_symbol_exists(avcodec_encode_video2 "libavcodec/avcodec.h" HAVE_FUN_avcodec_encode_video2)
check_symbol_exists(av_frame_alloc "libavutil/avutil.h;libavutil/frame.h" HAVE_FUN_av_frame_alloc)
check_symbol_exists(av_frame_free "libavutil/avutil.h;libavutil/frame.h" HAVE_FUN_av_frame_free)
check_symbol_exists(av_frame_unref "libavutil/avutil.h;libavutil/frame.h" HAVE_FUN_av_frame_unref)
cmake_pop_check_state()
endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment