diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c index 973af8fd51..5856450dbb 100644 --- a/gst/isomp4/qtdemux.c +++ b/gst/isomp4/qtdemux.c @@ -8545,6 +8545,8 @@ done2: /* save values */ stream->stts_time = stts_time; stream->stts_sample_index = j + 1; + if (stream->stts_sample_index >= stream->stts_samples) + stream->stts_index++; goto done3; } }