From cab020b4cb5418359c13409a115c844b80d9c06f Mon Sep 17 00:00:00 2001 From: Vivia Nikolaidou Date: Fri, 10 Feb 2023 15:35:15 +0200 Subject: [PATCH] qtdemux: Fix guint vs gsize type confusion Part-of: --- subprojects/gst-plugins-good/gst/isomp4/qtdemux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c b/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c index 23eafe0..b20c255 100644 --- a/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c +++ b/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c @@ -3121,7 +3121,7 @@ qtdemux_parse_cstb (GstQTDemux * qtdemux, GstByteReader * data) /* caller verifies at least 8 bytes in buf */ static void -extract_initial_length_and_fourcc (const guint8 * data, guint size, +extract_initial_length_and_fourcc (const guint8 * data, gsize size, guint64 * plength, guint32 * pfourcc) { guint64 length; @@ -4676,8 +4676,8 @@ gst_qtdemux_loop_state_header (GstQTDemux * qtdemux) GST_ELEMENT_ERROR (qtdemux, STREAM, DEMUX, (_("This file is incomplete and cannot be played.")), ("We got less than expected (received %" G_GSIZE_FORMAT - ", wanted %u, offset %" G_GUINT64_FORMAT ")", map.size, - (guint) length, cur_offset)); + ", wanted %" G_GUINT64_FORMAT ", offset %" G_GUINT64_FORMAT ")", + map.size, length, cur_offset)); gst_buffer_unmap (moov, &map); gst_buffer_unref (moov); ret = GST_FLOW_ERROR; -- 2.7.4