[FFmpeg-cvslog] avfilter/vf_v360: adjust h for mercator input/output

Paul B Mahol git at videolan.org
Sun Sep 22 23:37:31 EEST 2019


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Sep 22 22:34:13 2019 +0200| [4ba45a95df1b3b38fe69e7e462d1c7c564ac395f] | committer: Paul B Mahol

avfilter/vf_v360: adjust h for mercator input/output

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4ba45a95df1b3b38fe69e7e462d1c7c564ac395f
---

 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 3d855cb5b4..e44a26ee45 100644
--- a/libavfilter/vf_v360.c
+++ b/libavfilter/vf_v360.c
@@ -2598,7 +2598,7 @@ static int config_output(AVFilterLink *outlink)
         s->in_transform = xyz_to_mercator;
         err = 0;
         wf = w;
-        hf = h;
+        hf = h / 2.f;
         break;
     case BALL:
         s->in_transform = xyz_to_ball;
@@ -2680,7 +2680,7 @@ static int config_output(AVFilterLink *outlink)
         s->out_transform = mercator_to_xyz;
         prepare_out = NULL;
         w = roundf(wf);
-        h = roundf(hf);
+        h = roundf(hf * 2.f);
         break;
     case BALL:
         s->out_transform = ball_to_xyz;



More information about the ffmpeg-cvslog mailing list