MP4ConvertToTrackDuration - Convert a duration from a specified time scale to the track time scale.
#include <mp4.h>
MP4Duration MP4ConvertToTrackDuration(
MP4FileHandle hFile,
MP4TrackId trackId,
u_int64_t duration,
u_int32_t oldTimeScale
)
Upon success, the duration in the track time scale units. Upon error, MP4_INVALID_DURATION.
MP4ConvertToTrackDuration converts a duration such as a sample duration from the specified time scale to the track time scale.
MP4(3) MP4ConvertFromTrackDuration(3)