OSDN Git Service

Set the alternate group for the audio tracks. Does only work when building with jam...
authorritsuka <ritsuka@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 19 Jan 2008 17:37:53 +0000 (17:37 +0000)
committerritsuka <ritsuka@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 19 Jan 2008 17:37:53 +0000 (17:37 +0000)
git-svn-id: svn://localhost/HandBrake/trunk@1214 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/muxmp4.c

index adbd2c5..989bb96 100644 (file)
@@ -320,6 +320,9 @@ static int MP4Init( hb_mux_object_t * m )
         reserved2[9] = (u_int8_t)HB_AMIXDOWN_GET_DISCRETE_CHANNEL_COUNT(audio->amixdown);
         MP4SetTrackBytesProperty(m->file, mux_data->track, "mdia.minf.stbl.stsd.mp4a.reserved2", reserved2, sizeof(reserved2));
 
+        /* Set the audio track alternate group */
+        MP4SetTrackIntegerProperty(m->file, mux_data->track, "tkhd.alternate_group", 1);
+        
         /* If we ever upgrade mpeg4ip, the line above should be replaced with the line below.*/
 //        MP4SetTrackIntegerProperty(m->file, mux_data->track, "mdia.minf.stbl.stsd.mp4a.channels",  (u_int16_t)HB_AMIXDOWN_GET_DISCRETE_CHANNEL_COUNT(audio->amixdown));