From 8ed88a9c59f4bd74804290dcc87e7483ce06f896 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Thu, 13 May 2010 14:48:18 +0000 Subject: allow mono mixdown with lame encoder enable mono mode in lame encoder when mixdown is mono. use lame_encode_buffer_float instead of lame_encode_buffer_interleave. this eliminates the clipping issue in lame without reducing the level of the input. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3294 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/decavcodec.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'libhb/decavcodec.c') diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c index 0a9f63fec..31c0b751a 100644 --- a/libhb/decavcodec.c +++ b/libhb/decavcodec.c @@ -210,8 +210,6 @@ static int decavcodecInit( hb_work_object_t * w, hb_job_t * job ) pv->downmix = hb_downmix_init(w->audio->config.in.channel_layout, w->audio->config.out.mixdown); hb_downmix_set_chan_map( pv->downmix, &hb_smpte_chan_map, &hb_qt_chan_map ); - if ( w->audio->config.out.codec == HB_ACODEC_LAME ) - hb_downmix_adjust_level( pv->downmix ); } return 0; @@ -1101,8 +1099,6 @@ static int decavcodecviInit( hb_work_object_t * w, hb_job_t * job ) pv->downmix = hb_downmix_init(w->audio->config.in.channel_layout, w->audio->config.out.mixdown); hb_downmix_set_chan_map( pv->downmix, &hb_smpte_chan_map, &hb_qt_chan_map ); - if ( w->audio->config.out.codec == HB_ACODEC_LAME ) - hb_downmix_adjust_level( pv->downmix ); } return 0; -- cgit v1.2.3