[vlc-commits] [Git][videolan/vlc][master] 4 commits: configure: check that libvpx has at least one decoding/ending feature

Steve Lhomme (@robUx4) gitlab at videolan.org
Mon Oct 26 10:23:51 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
3e31e7b5 by Steve Lhomme at 2026-10-26T09:54:47+00:00
configure: check that libvpx has at least one decoding/ending feature

And if the user requests vpx support it should have at least one.

- - - - -
1d97785a by Steve Lhomme at 2026-10-26T09:54:47+00:00
meson: check that libvpx has at least one decoding/ending feature

And if the user requests vpx support it should have at least one.

- - - - -
0f598a0a by Steve Lhomme at 2026-10-26T09:54:47+00:00
package/win32: force VPX support

libavcodec cannot decode the alpha bistreams.

- - - - -
ba397b73 by Steve Lhomme at 2026-10-26T09:54:47+00:00
package/macosx: force VPX support

libavcodec cannot decode the alpha bistreams.

- - - - -


5 changed files:

- configure.ac
- extras/package/macosx/configure.sh
- extras/package/win32/build.sh
- extras/package/win32/configure.sh
- modules/codec/meson.build


Changes:

=====================================
configure.ac
=====================================
@@ -3134,18 +3134,26 @@ AS_IF([test "${enable_vpx}" != "no"],[
         VLC_ADD_PLUGIN([vpx])
         VLC_ADD_CPPFLAGS([vpx], [${VPX_CFLAGS}])
         VLC_ADD_LIBS([vpx], [${VPX_LIBS}])
+        vpx_has_feature=no
         AC_CHECK_LIB([vpx],[vpx_codec_vp8_dx], [
             VLC_ADD_CPPFLAGS([vpx], [-DENABLE_VP8_DECODER])
+            vpx_has_feature=yes
         ], [], [${VPX_LIBS}])
         AC_CHECK_LIB([vpx],[vpx_codec_vp9_dx], [
             VLC_ADD_CPPFLAGS([vpx], [-DENABLE_VP9_DECODER])
+            vpx_has_feature=yes
         ], [], [${VPX_LIBS}])
         AC_CHECK_LIB([vpx],[vpx_codec_vp8_cx], [
             VLC_ADD_CPPFLAGS([vpx], [-DENABLE_VP8_ENCODER])
+            vpx_has_feature=yes
         ], [], [${VPX_LIBS}])
         AC_CHECK_LIB([vpx],[vpx_codec_vp9_cx], [
             VLC_ADD_CPPFLAGS([vpx], [-DENABLE_VP9_ENCODER])
+            vpx_has_feature=yes
         ], [], [${VPX_LIBS}])
+        AS_IF([test "${enable_vpx}" = "yes" && test "${vpx_has_feature}" = "no" ],[
+            AC_MSG_ERROR([libvpx does not link with any feature])
+        ])
     ], [
     AS_IF([test "${enable_vpx}" = "yes"],[
         AC_MSG_ERROR([libvpx 1.5.0 or higher was not found])


=====================================
extras/package/macosx/configure.sh
=====================================
@@ -14,6 +14,7 @@ OPTIONS="
         --enable-ncurses
         --enable-twolame
         --enable-libass
+        --enable-vpx
         --enable-macosx-avfoundation
         --disable-xcb
         --disable-caca


=====================================
extras/package/win32/build.sh
=====================================
@@ -506,7 +506,7 @@ cd ../..
 MCONFIGFLAGS="-Dlua=enabled -Dflac=enabled -Dtheoradec=enabled -Dtheoraenc=enabled \
     -Davcodec=enabled -Dmerge-ffmpeg=true \
     -Dlibass=enabled -Dshout=enabled -Dgoom2=enabled \
-    -Dsse=enabled -Dzvbi=enabled -Dtelx=disabled $MCONFIGFLAGS"
+    -Dsse=enabled -Dvpx=enabled -Dzvbi=enabled -Dtelx=disabled $MCONFIGFLAGS"
 
 MCONFIGFLAGS="$MCONFIGFLAGS --prefer-static"
 if [ "$RELEASE" != "yes" ]; then


=====================================
extras/package/win32/configure.sh
=====================================
@@ -9,6 +9,7 @@ OPTIONS="
       --enable-shout
       --enable-goom
       --enable-sse
+      --enable-vpx
       --enable-zvbi --disable-telx"
 
 sh "$(dirname $0)"/../../../configure ${OPTIONS}  "$@"


=====================================
modules/codec/meson.build
=====================================
@@ -907,6 +907,10 @@ if vpx_dep.found()
     if cc.has_function('vpx_codec_vp9_cx', dependencies: [vpx_dep])
         vpx_c_args += '-DENABLE_VP9_ENCODER'
     endif
+
+    if get_option('vpx').enabled() and vpx_c_args.length() == 0
+        error('libvpx does not link with any feature.')
+    endif
 endif
 
 vlc_modules += {



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/565836b2bd7a2789c7faf00bd1cc7b43945cb8a3...ba397b737b2d24cbed6913879714b1e5b0552070

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/565836b2bd7a2789c7faf00bd1cc7b43945cb8a3...ba397b737b2d24cbed6913879714b1e5b0552070
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list