Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2019-09-12 19:36:10 +0300
committerPaul B Mahol <onemda@gmail.com>2019-09-12 19:37:38 +0300
commit24d4eea921aa1c33db33109c84dfb5fbd11480f3 (patch)
tree487416d4b821137dde95ae53873c0aca69c159c8 /libavfilter/vf_v360.c
parent801fd6e41031250cdf1ff84794dc0d235e3d1f79 (diff)
avfilter/vf_v360: fix setting default height for stereographic
Diffstat (limited to 'libavfilter/vf_v360.c')
-rw-r--r--libavfilter/vf_v360.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/vf_v360.c b/libavfilter/vf_v360.c
index ca88f46055..38cbe63fa1 100644
--- a/libavfilter/vf_v360.c
+++ b/libavfilter/vf_v360.c
@@ -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");