From 5c93a0a1e40969802f67647aaf2f4ce64f469db0 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Fri, 20 Sep 2019 21:34:46 +0200 Subject: [PATCH] avfilter/vf_v360: add support for mirroring to ball input format --- libavfilter/vf_v360.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_v360.c b/libavfilter/vf_v360.c index 79415efd6c..6f1359d2c8 100644 --- a/libavfilter/vf_v360.c +++ b/libavfilter/vf_v360.c @@ -1605,8 +1605,8 @@ static void xyz_to_ball(const V360Context *s, float uf, vf; int ui, vi; - uf = (1.f - r * vec[0] / l) * width / 2.f; - vf = (1.f + r * vec[1] / l) * height / 2.f; + uf = (1.f - r * vec[0] * s->input_mirror_modifier[0] / l) * width / 2.f; + vf = (1.f + r * vec[1] * s->input_mirror_modifier[1] / l) * height / 2.f; ui = floorf(uf); vi = floorf(vf);