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:
Nicolas Dufresne 2015-06-17 15:18:38 -04:00
parent 2977ced5dc
commit 8a406c9c38

View file

@ -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;