MP4ConvertFromTrackTimestamp - Convert a timestamp from the track time scale to a specified time scale.
#include <mp4.h>
u_int64_t MP4ConvertFromTrackTimestamp(
MP4FileHandle hFile,
MP4TrackId trackId,
MP4Timestamp timestamp,
u_int32_t newTimeScale
)
Upon success, the timestamp in the new time scale units. Upon error, 0xFFFFFFFFFFFFFFFF.
MP4ConvertFromTrackTimestamp converts a timestamp such as a sample start time from the track time scale to another specified time scale. This can be used by a player application to map all track samples to a common time scale.
MP4(3) MP4ConvertToTrackTimestamp(3)