summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsaintdev <[email protected]>2007-11-05 20:45:56 +0000
committersaintdev <[email protected]>2007-11-05 20:45:56 +0000
commit373d7163ca9797d611626c249dc26ff0ebdcbeb3 (patch)
tree69861be7989106af56b1e6a0b832f9dcbf6254ca
parent8b564dc93fd907f1730eaeb38ff6e79878f18e0c (diff)
Fix matroska audio channel counts for AC3 pass-through.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1044 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--libhb/muxmkv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/muxmkv.c b/libhb/muxmkv.c
index b7c7d2dc6..746b8b21a 100644
--- a/libhb/muxmkv.c
+++ b/libhb/muxmkv.c
@@ -192,7 +192,7 @@ static int MKVInit( hb_mux_object_t * m )
track->trackType = MK_TRACK_AUDIO;
track->language = audio->iso639_2;
track->audio.samplingFreq = (float)job->arate;
- track->audio.channels = HB_AMIXDOWN_GET_DISCRETE_CHANNEL_COUNT(audio->amixdown);
+ track->audio.channels = (job->acodec == HB_ACODEC_AC3) ? HB_INPUT_CH_LAYOUT_GET_DISCRETE_COUNT(audio->input_channel_layout) : HB_AMIXDOWN_GET_DISCRETE_CHANNEL_COUNT(audio->amixdown);
// track->defaultDuration = job->arate * 1000;
mux_data->track = mk_createTrack(m->file, track);
if (job->acodec == HB_ACODEC_VORBIS && track->codecPrivate != NULL)