[vlc-devel] [PATCH] vpx.c patch for gcc-9

Tetsuji Rai tetsuji at maverickonline.org
Thu Mar 28 04:53:30 CET 2019


Compiling with gcc-9 on fedora 30, I got many errors.   This patch
eliminates one of them.   Retrieved from rpmfusion repo.   It's for
3.0.6, but still valid for later versions.

Other than this, vlc has problems with openssh2 and aom support.  So
disabling it, vlc 3.0.6 can compile on Fedora 30 (gcc-9.0.1, glibc-2.29).


diff --git a/modules/codec/vpx.c b/modules/codec/vpx.c
index 2b1e37818d..aba180361f 100644
--- a/modules/codec/vpx.c
+++ b/modules/codec/vpx.c
@@ -116,6 +116,7 @@ static const struct
     { VLC_CODEC_I440, VPX_IMG_FMT_I440, 8, 0 },
 
     { VLC_CODEC_YV12, VPX_IMG_FMT_YV12, 8, 0 },
+#if VPX_IMAGE_ABI_VERSION < 5
     { VLC_CODEC_YUVA, VPX_IMG_FMT_444A, 8, 0 },
     { VLC_CODEC_YUYV, VPX_IMG_FMT_YUY2, 8, 0 },
     { VLC_CODEC_UYVY, VPX_IMG_FMT_UYVY, 8, 0 },
@@ -128,7 +129,7 @@ static const struct
 
     { VLC_CODEC_ARGB, VPX_IMG_FMT_ARGB, 8, 0 },
     { VLC_CODEC_BGRA, VPX_IMG_FMT_ARGB_LE, 8, 0 },
-
+#endif
     { VLC_CODEC_GBR_PLANAR, VPX_IMG_FMT_I444, 8, 1 },
     { VLC_CODEC_GBR_PLANAR_10L, VPX_IMG_FMT_I44416, 10, 1 },
 
-- 
2.11.0



More information about the vlc-devel mailing list