[vlc-devel] [PATCH] fourcc: fix VLC_CODEC_YUV_PACKED usage in the format descriptions

Steve Lhomme robux4 at ycbcr.xyz
Fri Dec 20 13:55:14 CET 2019


We cannot expand it if we use it literally and the name doesn't imply it's only
for packed on 16 bits
---
 src/misc/fourcc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c
index d916008b360..c7855dfb173 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -786,7 +786,8 @@ static const struct
         VLC_CODEC_YUVA_444_10B },              PLANAR_16(4, 1, 1, 10) },
     { { VLC_CODEC_P010 },                      SEMIPLANAR(2, 2, 2, 10) },
 
-    { { VLC_CODEC_YUV_PACKED },                PACKED_FMT(2, 16) },
+    { { VLC_CODEC_YUYV, VLC_CODEC_YVYU,
+        VLC_CODEC_UYVY, VLC_CODEC_VYUY },      PACKED_FMT(2, 16) },
     { { VLC_CODEC_RGB8, VLC_CODEC_GREY,
         VLC_CODEC_YUVP, VLC_CODEC_RGBP },      PACKED_FMT(1, 8) },
 
-- 
2.17.1



More information about the vlc-devel mailing list