MP4GetTrackNumberOfSamples - Man Page
Get the number of samples in a track
Syntax
#include <mp4.h>
u_int32_t MP4GetTrackNumberOfSamples(
MP4FileHandle hFile,
MP4TrackId trackId
)
Arguments
- hFile
Specifies the mp4 file to which the operation applies.
- trackId
Specifies the track for which the number of samples is desired.
Return Values
Upon success, the number of samples in the track. Upon an error, 0.
Description
MP4GetTrackNumberOfSamples returns the number of samples in the specified track in the mp4 file. Sample id's are the consecutive sequence of numbers from 1 to the total number of samples, i.e. 1-based indexing, not 0-based indexing.
See Also
Info
Version 0.9 Cisco Systems Inc. MP4 File Format Library