From 2723de585eb82f9bcf9230ab9c71958426bc45f8 Mon Sep 17 00:00:00 2001 From: Robert Swain Date: Wed, 17 Feb 2010 18:06:29 +0100 Subject: [PATCH] qtdemux: add durations modulo 1<<32 For calculating the durations of each sample, we are supposed to add each duration modulo 1<<32 so make the elapsed time counter a uint32. Fixes #610280 --- gst/qtdemux/qtdemux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c index 7274435e60..487093729c 100644 --- a/gst/qtdemux/qtdemux.c +++ b/gst/qtdemux/qtdemux.c @@ -305,8 +305,8 @@ struct _QtDemuxStream guint32 stts_samples; guint32 n_sample_times; guint32 stts_sample_index; - guint64 stts_time; - guint64 stts_duration; + guint32 stts_time; + guint32 stts_duration; /* stss */ gboolean stss_present; guint32 n_sample_syncs; @@ -4508,7 +4508,7 @@ done2: for (i = stream->stts_index; i < n_sample_times; i++) { guint32 stts_samples; guint32 stts_duration; - guint64 stts_time; + guint32 stts_time; if (stream->stts_sample_index >= stream->stts_samples || !stream->stts_sample_index) {