summaryrefslogtreecommitdiffstats
path: root/gst/qtdemux
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2009-09-25 11:54:06 +0200
committerWim Taymans <wim@metal.(none)>2009-09-25 11:54:06 +0200
commit03f46a42e59a2729327c51b3ee77abdaf022b38e (patch)
treea61e3d3c458db59c2189b02c5f253f661a381e04 /gst/qtdemux
parent4e114a2b242975355c9f8382de71fe01c10d81b3 (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 #595942
Diffstat (limited to 'gst/qtdemux')
-rw-r--r--gst/qtdemux/qtdemux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c
index 41b364e5..7724fafc 100644
--- a/gst/qtdemux/qtdemux.c
+++ b/gst/qtdemux/qtdemux.c
@@ -3538,7 +3538,7 @@ qtdemux_parse_samples (GstQTDemux * qtdemux, QtDemuxStream * stream,
QtDemuxSample *samples;
gint i, j, k;
int index;
- guint64 timestamp, time;
+ guint64 timestamp;
guint co_size;
/* sample to chunk */
@@ -3676,6 +3676,7 @@ qtdemux_parse_samples (GstQTDemux * qtdemux, QtDemuxStream * stream,
done2:
{
guint32 n_sample_times;
+ guint32 time;
if (!qt_atom_parser_skip (&stts, 4))
goto corrupt_file;