]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
configure: only enable nvenc if asked, not by default, fixes #4572
authorMark Clarkstone <hello@markclarkstone.co.uk>
Tue, 5 Sep 2017 16:16:06 +0000 (17:16 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 6 Sep 2017 06:56:03 +0000 (08:56 +0200)
configure

index 8cd4d588b09dde62de26c215543208d260440989..0262b1be22881b67d3c0eec51364577854da2f01 100755 (executable)
--- a/configure
+++ b/configure
@@ -535,11 +535,13 @@ if enabled ffmpeg_static; then
 
   # nvenc
   # latest ffmpeg has own code
-  enable nvenc
-  #if enabled nvenc; then
-  #  check_cc_header nvEncodeAPI || \
-  #    die "NVENC library (https://developer.nvidia.com/nvidia-video-codec-sdk) not found"
-  #fi
+  if enabled_or_auto nvenc; then
+    #check_cc_header nvEncodeAPI || \
+    #  die "NVENC library (https://developer.nvidia.com/nvidia-video-codec-sdk) not found"
+    enable nvenc
+  else
+    disable nvenc
+  fi
 
   # omx
   if enabled omx; then