summaryrefslogtreecommitdiff
path: root/libavfilter/vsrc_mptestsrc.c
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-11-22 11:50:22 -0500
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-11-26 09:20:46 -0500
commit74b79dcf510b1897ba0d87415e4bac33ca11c024 (patch)
tree44d53af24cbe0970120d053cfcfecf146557f75e /libavfilter/vsrc_mptestsrc.c
parent352bd18dff147ec1150c32a034046c6420ae1d36 (diff)
avfilter/vsrc_mptestsrc: use hypot()
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavfilter/vsrc_mptestsrc.c')
-rw-r--r--libavfilter/vsrc_mptestsrc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vsrc_mptestsrc.c b/libavfilter/vsrc_mptestsrc.c
index bc5b2cd252..668a001f97 100644
--- a/libavfilter/vsrc_mptestsrc.c
+++ b/libavfilter/vsrc_mptestsrc.c
@@ -240,7 +240,7 @@ static void ring2_test(uint8_t *dst, int dst_linesize, int off)
for (y = 0; y < 16*16; y++) {
for (x = 0; x < 16*16; x++) {
- double d = sqrt((x-8*16)*(x-8*16) + (y-8*16)*(y-8*16));
+ double d = hypot(x-8*16, y-8*16);
double r = d/20 - (int)(d/20);
if (r < off/30.0) {
dst[x + y*dst_linesize] = 255;