From: jstebbins Date: Mon, 4 Apr 2011 14:52:05 +0000 (+0000) Subject: Fix the volume output level of our dts decoder X-Git-Tag: 0.9.6~563 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8966fc1eda85982bfcc106fac8a9aef14b10202b;p=handbrake Fix the volume output level of our dts decoder dcadec returns samples that have values in the range -1.0 to 1.0. We need these to be converted to the range -32768 to 32767. For some reason, decdca was scaling by 16768 instead of 32767. This has been like this since dts support was initially added by maurj. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3900 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/libhb/decdca.c b/libhb/decdca.c index ea4cb560c..c369999db 100644 --- a/libhb/decdca.c +++ b/libhb/decdca.c @@ -270,7 +270,7 @@ static hb_buffer_t * Decode( hb_work_object_t * w ) { for ( k = 0; k < pv->out_discrete_channels; k++ ) { - samples_out[(pv->out_discrete_channels*j)+k] = samples_in[(256*k)+j] * 16384; + samples_out[(pv->out_discrete_channels*j)+k] = samples_in[(256*k)+j] * 32767; } }