]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/vf_v360: adjust h for mercator input/output
authorPaul B Mahol <onemda@gmail.com>
Sun, 22 Sep 2019 20:34:13 +0000 (22:34 +0200)
committerPaul B Mahol <onemda@gmail.com>
Sun, 22 Sep 2019 20:34:13 +0000 (22:34 +0200)
libavfilter/vf_v360.c

index 3d855cb5b475b4cf8e2e0d68c422d97f29f3d773..e44a26ee456111c917c33bd48907511bd80eafd4 100644 (file)
@@ -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;