mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-05 15:08:48 +00:00
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/6641>
This commit is contained in:
parent
2f40a0c0d6
commit
c3238be321
1 changed files with 1 additions and 1 deletions
|
@ -11623,7 +11623,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);
|
||||
|
|
Loading…
Reference in a new issue