[vlc-commits] codec: vpx: Detect libvpx 1.8.0 and, if detected, use fewer frame formats in the chroma_table

Danny Milosavljevic git at videolan.org
Tue Feb 12 08:46:19 CET 2019


vlc | branch: master | Danny Milosavljevic <dannym at scratchpost.org> | Mon Feb 11 16:07:12 2019 +0100| [5575fe3eb3fd46bada8662268b74d03493476a84] | committer: Steve Lhomme

codec: vpx: Detect libvpx 1.8.0 and, if detected, use fewer frame formats in the chroma_table

Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5575fe3eb3fd46bada8662268b74d03493476a84
---

 modules/codec/vpx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/codec/vpx.c b/modules/codec/vpx.c
index f03c7fae62..59b3acdef7 100644
--- a/modules/codec/vpx.c
+++ b/modules/codec/vpx.c
@@ -117,6 +117,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 },
@@ -129,7 +130,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 },
 



More information about the vlc-commits mailing list