I added --disable-hwaccels during configure and noticed that all autodetected hwaccel libs were still being linked - 6 in my case, which makes for a more bloated binary than warranted.

Turns out the option only disables native components which make use of the hwaccel libs. The reporter of ticket #3906 had a similar concern.

Added option to disable all autodetected hwaccel libs.

From e89ed9ec2f476457552290315171bd2ef89490a5 Mon Sep 17 00:00:00 2001
From: Gyan Doshi <gyando...@gmail.com>
Date: Thu, 30 Nov 2017 13:48:57 +0530
Subject: [PATCH] configure: Allow users to disable all autodetected libraries
 providing hardware acceleration.

 configure | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/configure b/configure
index 1fa16e9dba..e5b390c955 100755
--- a/configure
+++ b/configure
@@ -304,6 +304,7 @@ External library support:
   --disable-zlib           disable zlib [autodetect]
   The following libraries provide various hardware acceleration features:
+  --disable-hwaccel-libs   disable all autodetected hwaccel libraries
   --disable-amf            disable AMF video encoding code [autodetect]
   --disable-audiotoolbox   disable Apple AudioToolbox code [autodetect]
   --disable-cuda           disable dynamically linked Nvidia CUDA code 
@@ -3629,6 +3630,9 @@ for opt do
             add_extralibs $optval
+        --disable-hwaccel-libs)
+        ;;
             disable $INDEV_LIST $OUTDEV_LIST
ffmpeg-devel mailing list

Reply via email to