From f51ba3fdeff6498d79d9185fd09039ba00729a04 Mon Sep 17 00:00:00 2001 From: "FeRD (Frank Dana)" Date: Sat, 13 Nov 2021 17:46:16 -0500 Subject: [PATCH] Disable FFmpeg hwaccel when APPIMAGE_BUILD is set --- src/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 70797f0db..3f82834ff 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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)