summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjbrjake <[email protected]>2008-02-14 03:49:10 +0000
committerjbrjake <[email protected]>2008-02-14 03:49:10 +0000
commit6920c4d92b339af47e16f48dba079d6a88a57eb3 (patch)
tree9ddcaba16fef3e8165d338f50fa3b0f31fcbb931
parent39212ff7d8ac8f72b59196e38e5173b8ec503f6a (diff)
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
-rw-r--r--libhb/muxmp4.c2
1 files changed, 1 insertions, 1 deletions
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",