Commit 24d4eea9 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_v360: fix setting default height for stereographic

parent 801fd6e4
......@@ -2240,7 +2240,7 @@ static int config_output(AVFilterLink *outlink)
in_transform = xyz_to_stereographic;
err = 0;
wf = inlink->w;
hf = inlink->h;
hf = inlink->h / 2.f;
break;
default:
av_log(ctx, AV_LOG_ERROR, "Specified input format is not handled.\n");
......@@ -2300,8 +2300,8 @@ static int config_output(AVFilterLink *outlink)
case STEREOGRAPHIC:
out_transform = stereographic_to_xyz;
err = prepare_stereographic_out(ctx);
w = FFMAX(roundf(wf), roundf(hf));
h = w;
w = roundf(wf);
h = roundf(hf * 2.f);
break;
default:
av_log(ctx, AV_LOG_ERROR, "Specified output format is not handled.\n");
......
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