summaryrefslogtreecommitdiffstats
path: root/libhb/decavcodec.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2010-05-13 14:48:18 +0000
committerjstebbins <[email protected]>2010-05-13 14:48:18 +0000
commit8ed88a9c59f4bd74804290dcc87e7483ce06f896 (patch)
tree6bc22c0294d03b445427096ac7c08ab50697080c /libhb/decavcodec.c
parent675c7146fe298cd566fa8e446c762a3ded12e0d7 (diff)
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
Diffstat (limited to 'libhb/decavcodec.c')
-rw-r--r--libhb/decavcodec.c4
1 files changed, 0 insertions, 4 deletions
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;