mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
Use math constant instead of hardcoded rounded value for sqrt(0.5).
Patch by Christophe.Gisquet (gmail) Originally committed as revision 24213 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
bf55cf19ca
commit
f2401c214d
@ -1403,8 +1403,8 @@ static int dca_decode_frame(AVCodecContext * avctx,
|
||||
float* rt_chan = s->samples + s->channel_order_tab[s->xch_base_channel - 1] * 256;
|
||||
int j;
|
||||
for(j = 0; j < 256; ++j) {
|
||||
lt_chan[j] -= (back_chan[j] - s->add_bias) * 0.707107f;
|
||||
rt_chan[j] -= (back_chan[j] - s->add_bias) * 0.707107f;
|
||||
lt_chan[j] -= (back_chan[j] - s->add_bias) * M_SQRT1_2;
|
||||
rt_chan[j] -= (back_chan[j] - s->add_bias) * M_SQRT1_2;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user