[FFmpeg-cvslog] avfilter/vf_v360: remove w/h changing for flat output
Paul B Mahol
git at videolan.org
Wed Sep 11 01:37:38 EEST 2019
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Sep 11 00:33:33 2019 +0200| [0f0f5188acc67a35a8f045505ccf6e2178e5f858] | committer: Paul B Mahol
avfilter/vf_v360: remove w/h changing for flat output
Fixes crashes with bigger h/v fov.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0f0f5188acc67a35a8f045505ccf6e2178e5f858
---
libavfilter/vf_v360.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/vf_v360.c b/libavfilter/vf_v360.c
index 39893730bb..794f6212a3 100644
--- a/libavfilter/vf_v360.c
+++ b/libavfilter/vf_v360.c
@@ -2265,7 +2265,7 @@ static int config_output(AVFilterLink *outlink)
case FLAT:
out_transform = flat_to_xyz;
err = prepare_flat_out(ctx);
- w = roundf(wf * s->flat_range[0] / s->flat_range[1] / 2.f);
+ w = roundf(wf);
h = roundf(hf);
break;
case DUAL_FISHEYE:
More information about the ffmpeg-cvslog
mailing list