avcodec/mpegaudio: use predefined M_SQRT2
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>
Sat, 14 Nov 2015 15:52:30 +0000 (10:52 -0500)
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>
Sat, 14 Nov 2015 15:58:39 +0000 (10:58 -0500)
commit11f0acf829e26279c5f2a414c6860bd4933f29af
tree6b9bd171d1d7c4e97a3215c833c2e5970c7191b9
parentc5fa42c69aeccd644fb5a42b4995602d206f168b
avcodec/mpegaudio: use predefined M_SQRT2

M_SQRT2 is defined in math.h, or in avutil/mathematics.h for
compatibility hacks. This uses this value instead of an ad-hoc define.

Fixed point values produced by FIX() remain identical.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
libavcodec/mpegaudioenc_template.c
libavcodec/mpegaudiotab.h