From 164e01b14ed196fa8ebf003022053131d1d75f4d Mon Sep 17 00:00:00 2001 From: He Junyan Date: Sun, 24 Apr 2022 22:54:58 +0800 Subject: [PATCH] av1parse: Correct the meaning of color_range flag. According to spec: color range equal to 0 shall be referred to as the studio swing representation and color range equal to 1 shall be referred to as the full swing representation. The current status is just the opposite. Part-of: --- subprojects/gst-plugins-bad/gst/videoparsers/gstav1parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/gst/videoparsers/gstav1parse.c b/subprojects/gst-plugins-bad/gst/videoparsers/gstav1parse.c index 20656e66a7..e009e69832 100644 --- a/subprojects/gst-plugins-bad/gst/videoparsers/gstav1parse.c +++ b/subprojects/gst-plugins-bad/gst/videoparsers/gstav1parse.c @@ -1196,9 +1196,9 @@ gst_av1_parse_handle_sequence_obu (GstAV1Parse * self, GstAV1OBU * obu) if (have_cinfo) { if (seq_header.color_config.color_range) - cinfo.range = GST_VIDEO_COLOR_RANGE_16_235; - else cinfo.range = GST_VIDEO_COLOR_RANGE_0_255; + else + cinfo.range = GST_VIDEO_COLOR_RANGE_16_235; cinfo.matrix = gst_video_color_matrix_from_iso (seq_header.color_config.matrix_coefficients);