From cb49acf158d77e6d52b250d38331144fe2a16b01 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Mon, 8 Jun 2015 13:01:43 -0400 Subject: [PATCH] video: Allow using bt2020 by name in colorimetry As the lookup stops at the first element in the array with a NULL name, bt2020 could not be used by name. Moving up this entry fixes the issue. --- gst-libs/gst/video/video-color.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/video/video-color.c b/gst-libs/gst/video/video-color.c index d09a860575..8892e92f8b 100644 --- a/gst-libs/gst/video/video-color.c +++ b/gst-libs/gst/video/video-color.c @@ -53,9 +53,9 @@ static const ColorimetryInfo colorimetry[] = { MAKE_COLORIMETRY (BT709, _16_235, BT709, BT709, BT709), MAKE_COLORIMETRY (SMPTE240M, _16_235, SMPTE240M, SMPTE240M, SMPTE240M), MAKE_COLORIMETRY (SRGB, _0_255, RGB, SRGB, BT709), + MAKE_COLORIMETRY (BT2020, _16_235, BT2020, BT2020_12, BT2020), MAKE_COLORIMETRY (NONAME, _0_255, BT601, UNKNOWN, UNKNOWN), MAKE_COLORIMETRY (NONAME, _UNKNOWN, UNKNOWN, UNKNOWN, UNKNOWN), - MAKE_COLORIMETRY (BT2020, _16_235, BT2020, BT2020_12, BT2020), }; static const ColorimetryInfo *