[FFmpeg-devel] [PATCH] configure: Allow users to disable all hwaccel libraries

Gyan Doshi gyandoshi at gmail.com
Thu Nov 30 12:28:21 EET 2017

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.

-------------- next part --------------
From e89ed9ec2f476457552290315171bd2ef89490a5 Mon Sep 17 00:00:00 2001
From: Gyan Doshi <gyandoshi at 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 [autodetect]
@@ -3629,6 +3630,9 @@ for opt do
             add_extralibs $optval
+        --disable-hwaccel-libs)
+        ;;
             disable $INDEV_LIST $OUTDEV_LIST

More information about the ffmpeg-devel mailing list