mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +00:00
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
This commit is contained in:
parent
6a877b2e6d
commit
2723de585e
1 changed files with 3 additions and 3 deletions
|
@ -305,8 +305,8 @@ struct _QtDemuxStream
|
||||||
guint32 stts_samples;
|
guint32 stts_samples;
|
||||||
guint32 n_sample_times;
|
guint32 n_sample_times;
|
||||||
guint32 stts_sample_index;
|
guint32 stts_sample_index;
|
||||||
guint64 stts_time;
|
guint32 stts_time;
|
||||||
guint64 stts_duration;
|
guint32 stts_duration;
|
||||||
/* stss */
|
/* stss */
|
||||||
gboolean stss_present;
|
gboolean stss_present;
|
||||||
guint32 n_sample_syncs;
|
guint32 n_sample_syncs;
|
||||||
|
@ -4508,7 +4508,7 @@ done2:
|
||||||
for (i = stream->stts_index; i < n_sample_times; i++) {
|
for (i = stream->stts_index; i < n_sample_times; i++) {
|
||||||
guint32 stts_samples;
|
guint32 stts_samples;
|
||||||
guint32 stts_duration;
|
guint32 stts_duration;
|
||||||
guint64 stts_time;
|
guint32 stts_time;
|
||||||
|
|
||||||
if (stream->stts_sample_index >= stream->stts_samples
|
if (stream->stts_sample_index >= stream->stts_samples
|
||||||
|| !stream->stts_sample_index) {
|
|| !stream->stts_sample_index) {
|
||||||
|
|
Loading…
Reference in a new issue