From 6920c4d92b339af47e16f48dba079d6a88a57eb3 Mon Sep 17 00:00:00 2001 From: jbrjake Date: Thu, 14 Feb 2008 03:49:10 +0000 Subject: Calculate AC3-in-M4V frame sizes based on channel count instead of always using 1536. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1262 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/muxmp4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libhb/muxmp4.c') diff --git a/libhb/muxmp4.c b/libhb/muxmp4.c index f91482ee6..114546be2 100644 --- a/libhb/muxmp4.c +++ b/libhb/muxmp4.c @@ -307,7 +307,7 @@ static int MP4Init( hb_mux_object_t * m ) { mux_data->track = MP4AddAC3AudioTrack( m->file, - job->arate, 1536, MP4_MPEG4_AUDIO_TYPE ); + job->arate, 256*HB_INPUT_CH_LAYOUT_GET_DISCRETE_COUNT(audio->input_channel_layout), MP4_MPEG4_AUDIO_TYPE ); MP4SetTrackBytesProperty( m->file, mux_data->track, "udta.name.value", -- cgit v1.2.3