1MP4(3) MP4 File Format Library MP4(3)
2
3
4
6 MP4GetTrackESConfiguration - Get the elementary stream (ES) configura‐
7 tion of a track
8
10 #include <mp4.h>
11
12 void MP4GetTrackESConfiguration(
13 MP4FileHandle hFile,
14 MP4TrackId trackId
15 u_int8_t** ppConfig,
16 u_int32_t* pConfigSize
17 )
18
20 hFile Specifies the mp4 file to which the operation applies.
21
22 trackId
23 Specifies the track for which the ES configuration is desired.
24
25 ppConfig
26 Specifies a pointer to a pointer variable that will be given the
27 address of the configuration information.
28
29 pConfigSize
30 Specifies a pointer to a variable to hold the size of the ES
31 configuration information.
32
34 Upon success, *ppConfig will point to a malloc'd block of memory with
35 the ES configuration, and *pConfigSize will indicated the number of
36 bytes of the ES configuration. Upon error, *ppConfig will be NULL, and
37 *pConfigSize will be 0.
38
40 MP4GetTrackESConfiguration returns the elementary stream (ES) configu‐
41 ration of the specified track in the mp4 file. This information is
42 codec specific and contains the configuration necessary for the given
43 codec to decode the samples in the track.
44
45 Caveat: the returned block of memory has been malloc'd. The caller may
46 safely modify the value without effecting the library, but the caller
47 takes responsiblity for free'ing the memory.
48
50 MP4(3)
51
52
53
54Cisco Systems Inc. Version 0.9 MP4(3)