sonic: use M_SQRT2
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f8d8d2e235
commit
8477e63d3c
@ -701,7 +701,7 @@ static int sonic_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
|
||||
}
|
||||
|
||||
energy2 = sqrt(energy2/(s->channels*s->block_align));
|
||||
energy1 = sqrt(2.0)*energy1/(s->channels*s->block_align);
|
||||
energy1 = M_SQRT2*energy1/(s->channels*s->block_align);
|
||||
|
||||
// increase bitrate when samples are like a gaussian distribution
|
||||
// reduce bitrate when samples are like a two-tailed exponential distribution
|
||||
|
Loading…
x
Reference in New Issue
Block a user