mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
ctts_dump: Fix signess issues
It didn't bug, but use correct signess in traces. The number of entries is unsigned while the offset can be signed according to recent spec. https://bugzilla.gnome.org/show_bug.cgi?id=751103
This commit is contained in:
parent
2977ced5dc
commit
8a406c9c38
1 changed files with 4 additions and 2 deletions
|
@ -499,14 +499,16 @@ qtdemux_dump_stco (GstQTDemux * qtdemux, GstByteReader * data, int depth)
|
|||
gboolean
|
||||
qtdemux_dump_ctts (GstQTDemux * qtdemux, GstByteReader * data, int depth)
|
||||
{
|
||||
guint32 ver_flags = 0, num_entries = 0, i, count, offset;
|
||||
guint32 ver_flags = 0, num_entries = 0, i, count;
|
||||
gint32 offset;
|
||||
|
||||
|
||||
if (!gst_byte_reader_get_uint32_be (data, &ver_flags) ||
|
||||
!gst_byte_reader_get_uint32_be (data, &num_entries))
|
||||
return FALSE;
|
||||
|
||||
GST_LOG ("%*s version/flags: %08x", depth, "", ver_flags);
|
||||
GST_LOG ("%*s n entries: %d", depth, "", num_entries);
|
||||
GST_LOG ("%*s n entries: %u", depth, "", num_entries);
|
||||
|
||||
if (!qt_atom_parser_has_chunks (data, num_entries, 4 + 4))
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue