[FFmpeg-cvslog] avfilter/vf_v360: fix setting default height for stereographic
Paul B Mahol
git at videolan.org
Thu Sep 12 19:40:24 EEST 2019
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Sep 12 18:36:10 2019 +0200| [24d4eea921aa1c33db33109c84dfb5fbd11480f3] | committer: Paul B Mahol
avfilter/vf_v360: fix setting default height for stereographic
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=24d4eea921aa1c33db33109c84dfb5fbd11480f3
---
libavfilter/vf_v360.c | 6 +++---
1 file 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");
More information about the ffmpeg-cvslog
mailing list