From aa759d4204a7b1f9815ad24ef629f4e04c62a8b1 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Fri, 24 May 2019 16:35:08 +0200 Subject: [PATCH] video-color: Fix unknown colorimetry checking Also drop some deadcode #defines. --- gst-libs/gst/video/video-color.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/gst-libs/gst/video/video-color.c b/gst-libs/gst/video/video-color.c index 6032c25..08ba8e3 100644 --- a/gst-libs/gst/video/video-color.c +++ b/gst-libs/gst/video/video-color.c @@ -63,13 +63,10 @@ typedef struct #define GST_VIDEO_COLORIMETRY_NONAME NULL -#define DEFAULT_YUV_SD 0 -#define DEFAULT_YUV_HD 1 -#define DEFAULT_RGB 3 -#define DEFAULT_YUV_UHD 4 -#define DEFAULT_GRAY 5 -#define DEFAULT_UNKNOWN 6 +#define DEFAULT_UNKNOWN 9 +/* NOTE: If you add an entry below, don't forget to update DEFAULT_UNKNOWN + * above */ static const ColorimetryInfo colorimetry[] = { MAKE_COLORIMETRY (BT601, _16_235, BT601, BT709, SMPTE170M), MAKE_COLORIMETRY (BT709, _16_235, BT709, BT709, BT709), -- 2.7.4