[gst-cvs] gst-plugins-good: qtdemux: add durations modulo 1<<32

Robert Swain robswain at kemper.freedesktop.org
Wed Feb 17 09:30:55 PST 2010


Module: gst-plugins-good
Branch: master
Commit: 2723de585eb82f9bcf9230ab9c71958426bc45f8
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=2723de585eb82f9bcf9230ab9c71958426bc45f8

Author: Robert Swain <robert.swain at collabora.co.uk>
Date:   Wed Feb 17 18:06:29 2010 +0100

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 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c
index 7274435..4870937 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) {





More information about the Gstreamer-commits mailing list