Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable FFmpeg hwaccel when APPIMAGE_BUILD is set #779

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,10 @@ add_feature_info("FFmpeg ${resample_lib}" TRUE "Audio resampling uses ${resample
set(FFMPEG_USE_SWRESAMPLE ${USE_SW} CACHE BOOL "libswresample used for audio resampling" FORCE)
mark_as_advanced(FFMPEG_USE_SWRESAMPLE)

# Version check for hardware-acceleration code
# Version check / enablement for hardware-acceleration code
if(APPIMAGE_BUILD)
set(USE_HW_ACCEL FALSE)
endif()
if(USE_HW_ACCEL AND FFmpeg_avcodec_VERSION)
if(${FFmpeg_avcodec_VERSION} VERSION_GREATER "57.106")
set(HAVE_HW_ACCEL TRUE)
Expand Down