summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Swain <robert.swain@collabora.co.uk>2010-02-17 18:06:29 +0100
committerRobert Swain <robert.swain@collabora.co.uk>2010-02-17 18:06:29 +0100
commit2723de585eb82f9bcf9230ab9c71958426bc45f8 (patch)
tree5321c9f3c2163ae27249e790ed1706ea7b3ee8d0
parent6a877b2e6daae21772768d1973fa801143d312e6 (diff)
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
-rw-r--r--gst/qtdemux/qtdemux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c
index 7274435e6..487093729 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) {