Use the right macro to convert to the correct scale or the
segment information will be wrong
https://bugzilla.gnome.org/show_bug.cgi?id=742572
for (i = 0; i < qtdemux->n_streams; i++) {
QtDemuxStream *stream = qtdemux->streams[i];
if (stream) {
- movdur = QTSTREAMTIME_TO_GSTTIME (stream, duration);
+ movdur = GSTTIME_TO_QTSTREAMTIME (stream, duration);
if (movdur > stream->duration) {
GST_DEBUG_OBJECT (qtdemux,
"Updating stream #%d duration to %" GST_TIME_FORMAT, i,