summaryrefslogtreecommitdiffstats
path: root/libhb/decdca.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-04-04 14:52:05 +0000
committerjstebbins <[email protected]>2011-04-04 14:52:05 +0000
commit8966fc1eda85982bfcc106fac8a9aef14b10202b (patch)
treee28167e174d1dd1d576cf795b6e79a975e01e68c /libhb/decdca.c
parenta6fbb52b6c9f4b639101e6e4d37e670ca2840c84 (diff)
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
Diffstat (limited to 'libhb/decdca.c')
-rw-r--r--libhb/decdca.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}