Commit 8477e63d authored by Michael Niedermayer's avatar Michael Niedermayer

sonic: use M_SQRT2

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f8d8d2e2
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment