Commit 4ba45a95 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_v360: adjust h for mercator input/output

parent 043038ea
...@@ -2598,7 +2598,7 @@ static int config_output(AVFilterLink *outlink) ...@@ -2598,7 +2598,7 @@ static int config_output(AVFilterLink *outlink)
s->in_transform = xyz_to_mercator; s->in_transform = xyz_to_mercator;
err = 0; err = 0;
wf = w; wf = w;
hf = h; hf = h / 2.f;
break; break;
case BALL: case BALL:
s->in_transform = xyz_to_ball; s->in_transform = xyz_to_ball;
...@@ -2680,7 +2680,7 @@ static int config_output(AVFilterLink *outlink) ...@@ -2680,7 +2680,7 @@ static int config_output(AVFilterLink *outlink)
s->out_transform = mercator_to_xyz; s->out_transform = mercator_to_xyz;
prepare_out = NULL; prepare_out = NULL;
w = roundf(wf); w = roundf(wf);
h = roundf(hf); h = roundf(hf * 2.f);
break; break;
case BALL: case BALL:
s->out_transform = ball_to_xyz; s->out_transform = ball_to_xyz;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment