From 79ab46424c62b2e6d9a001579cd921cd3c852bf9 Mon Sep 17 00:00:00 2001 From: Archit Tamarapu Date: Thu, 20 Oct 2022 16:35:05 +0200 Subject: [PATCH 1/2] fix MSVC warning and bug in EFAP_FIX_POLY --- lib_dec/ivas_efap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib_dec/ivas_efap.c b/lib_dec/ivas_efap.c index 482edfb643..aec452a96b 100644 --- a/lib_dec/ivas_efap.c +++ b/lib_dec/ivas_efap.c @@ -2114,7 +2114,8 @@ static int16_t get_poly_num( int16_t i; #ifdef EFAP_FIX_POLY int16_t num_poly, found_poly; - int16_t poly_tmp[EFAP_MAX_CHAN_NUM], poly_dist[EFAP_MAX_CHAN_NUM]; + int16_t poly_tmp[EFAP_MAX_CHAN_NUM]; + float poly_dist[EFAP_MAX_CHAN_NUM]; float dist_tmp; float pos[3]; -- GitLab From e488df01b735a9e199d14e9bdd40525742c05e32 Mon Sep 17 00:00:00 2001 From: vaclav Date: Thu, 20 Oct 2022 16:56:22 +0200 Subject: [PATCH 2/2] fix typo --- lib_dec/ivas_efap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib_dec/ivas_efap.c b/lib_dec/ivas_efap.c index aec452a96b..bbb464b292 100644 --- a/lib_dec/ivas_efap.c +++ b/lib_dec/ivas_efap.c @@ -1602,7 +1602,7 @@ static float vertex_distance( #ifdef EFAP_FIX_POLY /*-------------------------------------------------------------------------* - * point_plane_distance() + * point_poly_distance() * * Compute the signed distance between a point and polygon *-------------------------------------------------------------------------*/ -- GitLab