projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e114a2
)
qtdemux: add durations modulo 1<<32
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Fri, 25 Sep 2009 09:54:06 +0000
(11:54 +0200)
committer
Wim Taymans
<wim@metal.(none)>
Fri, 25 Sep 2009 09:54:06 +0000
(11:54 +0200)
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
gst/qtdemux/qtdemux.c
patch
|
blob
|
history
diff --git
a/gst/qtdemux/qtdemux.c
b/gst/qtdemux/qtdemux.c
index
41b364e
..
7724faf
100644
(file)
--- 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;