Show the real track duration instead of the media duration.

This commit is contained in:
Damiano Galassi committed 2017-08-31 21:46:54 +02:00
1 parent cca166eb8c
commit f34b3d4b65
1 file changed
+1 -3
+1 -3
View File
@@ -88,9 +88,7 @@
}
_timescale = MP4GetTrackTimeScale(fileHandle, _trackId);
_duration = MP4ConvertFromTrackDuration(fileHandle, _trackId,
MP4GetTrackDuration(fileHandle, _trackId),
MP4_MSECS_TIME_SCALE);
_duration = MP4ConvertFromMovieDuration(fileHandle, getTrackDuration(fileHandle, _trackId), MP4_MSECS_TIME_SCALE);
_startOffset = getTrackStartOffset(fileHandle, _trackId);
_bitrate = MP4GetTrackBitRate(fileHandle, _trackId);