Commit 0e5ae6c5 authored by Aashish Chaudhary's avatar Aashish Chaudhary

Must have modules are avformat and avcodec

All other modules are considered optinal
parent 85c21641
Pipeline #8380 passed with stage
...@@ -110,9 +110,10 @@ FFMPEG_FIND(LIBAVUTIL avutil avutil.h) ...@@ -110,9 +110,10 @@ FFMPEG_FIND(LIBAVUTIL avutil avutil.h)
FFMPEG_FIND(LIBSWSCALE swscale swscale.h) # not sure about the header to look for here. FFMPEG_FIND(LIBSWSCALE swscale swscale.h) # not sure about the header to look for here.
SET(FFMPEG_FOUND "NO") SET(FFMPEG_FOUND "NO")
# Note we don't check FFMPEG_LIBSWSCALE_FOUND here, it's optional.
IF (FFMPEG_LIBAVFORMAT_FOUND AND FFMPEG_LIBAVDEVICE_FOUND AND # Note we don't check FFMPEG_LIBSWSCALE_FOUND, FFMPEG_LIBAVDEVICE_FOUND,
FFMPEG_LIBAVCODEC_FOUND AND FFMPEG_LIBAVUTIL_FOUND AND STDINT_OK) # and FFMPEG_LIBAVUTIL_FOUND as they are optional.
IF (FFMPEG_LIBAVFORMAT_FOUND AND FFMPEG_LIBAVCODEC_FOUND AND STDINT_OK)
SET(FFMPEG_FOUND "YES") SET(FFMPEG_FOUND "YES")
...@@ -128,8 +129,4 @@ IF (FFMPEG_LIBAVFORMAT_FOUND AND FFMPEG_LIBAVDEVICE_FOUND AND ...@@ -128,8 +129,4 @@ IF (FFMPEG_LIBAVFORMAT_FOUND AND FFMPEG_LIBAVDEVICE_FOUND AND
${FFMPEG_LIBAVCODEC_LIBRARIES} ${FFMPEG_LIBAVCODEC_LIBRARIES}
${FFMPEG_LIBAVUTIL_LIBRARIES} ${FFMPEG_LIBAVUTIL_LIBRARIES}
${FFMPEG_LIBSWSCALE_LIBRARIES}) ${FFMPEG_LIBSWSCALE_LIBRARIES})
ELSE () ENDIF()
\ No newline at end of file
# MESSAGE(STATUS "Could not find FFMPEG")
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