qtdemux: fix wrong full_range offset when parsing colr box

use colr_data[18] >> 7 to get full range information, instead
of colr_data[17] >> 7

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6616>
This commit is contained in:
Qian Hu (胡骞) 2024-04-12 16:57:00 +08:00
parent 942415dce0
commit cd95d02032

View file

@ -12176,7 +12176,7 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
guint16 primaries = GST_READ_UINT16_BE (colr_data + 12);
guint16 transfer_function = GST_READ_UINT16_BE (colr_data + 14);
guint16 matrix = GST_READ_UINT16_BE (colr_data + 16);
gboolean full_range = len == 19 ? colr_data[17] >> 7 : FALSE;
gboolean full_range = len == 19 ? colr_data[18] >> 7 : FALSE;
CUR_STREAM (stream)->colorimetry.primaries =
gst_video_color_primaries_from_iso (primaries);