39d38 < MP4FileHandle mp4; 51,56d49 < // test if mp4 file exists < bool mp4FileExists = (access(output, F_OK) == 0); < < if (mp4FileExists) < mp4 = MP4Modify(output, MP4_DETAILS_ERROR); < else 58c51 < mp4 = MP4CreateEx(output);/* --- > MP4FileHandle mp4 = MP4CreateEx(output);/* 77,87c70,71 < int inputlen=strlen(inputAudio ); < < MP4TrackId audio; < MP4TrackId hintAudio; < < printf("ALAW %s !!!\n",inputAudio +inputlen-5); < if (!strcmp(inputAudio +inputlen-5, ".alaw")) < { < printf("ALAW %s !!!\n",inputAudio +inputlen-5); < /* Create audio track */ < audio = MP4AddAudioTrack(mp4,8000,480,MP4_ALAW_AUDIO_TYPE); --- > /* Create audio track */ > MP4TrackId audio = MP4AddAudioTrack(mp4,8000,480,MP4_ULAW_AUDIO_TYPE); 89,90c73,74 < /* Create hint track for aufio */ < hintAudio = MP4AddHintTrack(mp4,audio); --- > /* Create hint track for aufio */ > MP4TrackId hintAudio = MP4AddHintTrack(mp4,audio); 92,102c76,78 < /* Set audio payload */ < unsigned char type = 0; < MP4SetHintTrackRtpPayload(mp4,hintAudio,"PCMA",&type,0,NULL,1,0); < } < else < { < /* Create audio track */ < audio = MP4AddAudioTrack(mp4,8000,480,MP4_ULAW_AUDIO_TYPE); < < /* Create hint track for aufio */ < hintAudio = MP4AddHintTrack(mp4,audio); --- > /* Set audio payload */ > unsigned char type = 0; > MP4SetHintTrackRtpPayload(mp4,hintAudio,"PCMU",&type,0,NULL,1,0); 104,107d79 < /* Set audio payload */ < unsigned char type = 0; < MP4SetHintTrackRtpPayload(mp4,hintAudio,"PCMU",&type,0,NULL,1,0); < }