Lines 54-60
int getAACTrack(MP4FileHandle file)
Link Here
|
54 |
const char *trackType = MP4GetTrackType(file, trackID); |
54 |
const char *trackType = MP4GetTrackType(file, trackID); |
55 |
if(!strcmp(trackType, MP4_AUDIO_TRACK_TYPE)){//we found audio track ! |
55 |
if(!strcmp(trackType, MP4_AUDIO_TRACK_TYPE)){//we found audio track ! |
56 |
int j=0; |
56 |
int j=0; |
57 |
u_int8_t audiotype = MP4GetTrackAudioType(file, trackID); |
57 |
u_int8_t audiotype = MP4GetTrackEsdsObjectTypeId(file, trackID); |
58 |
while(mp4AudioTypes[j]){ // what kind of audio is ? |
58 |
while(mp4AudioTypes[j]){ // what kind of audio is ? |
59 |
if(mp4AudioTypes[j] == audiotype){ |
59 |
if(mp4AudioTypes[j] == audiotype){ |
60 |
if(mp4AudioTypes[j] == MP4_MPEG4_AUDIO_TYPE){//MPEG4 audio ok |
60 |
if(mp4AudioTypes[j] == MP4_MPEG4_AUDIO_TYPE){//MPEG4 audio ok |
Lines 126-132
void getMP4info(char* file)
Link Here
|
126 |
printf("Track %d, %s", trackID, trackType); |
126 |
printf("Track %d, %s", trackID, trackType); |
127 |
if(!strcmp(trackType, MP4_AUDIO_TRACK_TYPE)){//we found audio track ! |
127 |
if(!strcmp(trackType, MP4_AUDIO_TRACK_TYPE)){//we found audio track ! |
128 |
int j=0; |
128 |
int j=0; |
129 |
u_int8_t audiotype = MP4GetTrackAudioType(mp4file, trackID); |
129 |
u_int8_t audiotype = MP4GetTrackEsdsObjectTypeId(mp4file, trackID); |
130 |
while(mp4AudioTypes[j]){ // what kind of audio is ? |
130 |
while(mp4AudioTypes[j]){ // what kind of audio is ? |
131 |
if(mp4AudioTypes[j] == audiotype){ |
131 |
if(mp4AudioTypes[j] == audiotype){ |
132 |
if(mp4AudioTypes[j] == MP4_MPEG4_AUDIO_TYPE){ |
132 |
if(mp4AudioTypes[j] == MP4_MPEG4_AUDIO_TYPE){ |