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
{
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;
}
}