mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2288>
This commit is contained in:
parent
81ee2a9f2a
commit
164e01b14e
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue