diff options
author | Qian Hu (胡骞) <qian.hu@mediatek.com> | 2024-04-12 16:57:00 +0800 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2024-04-15 07:52:29 +0000 |
commit | c3238be321a105b80b40f453208183009d2d180c (patch) | |
tree | 11c57371ef781f8a4e29b0a68608838eb87f5211 | |
parent | 2f40a0c0d621e1ec89acc03ab7a2fe6fa30ad006 (diff) |
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>
-rw-r--r-- | subprojects/gst-plugins-good/gst/isomp4/qtdemux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c b/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c index da3fd78ab1..a53d61e649 100644 --- a/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c +++ b/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c @@ -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); |