[FFmpeg-cvslog] avfilter/vf_v360: do not reset yaw/pitch/roll with reset_rot true
Paul B Mahol
git at videolan.org
Sun Oct 24 15:09:15 EEST 2021
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Oct 24 14:05:28 2021 +0200| [9df3f147f5a1c11230f3b82fed9524a3ad14a7ae] | committer: Paul B Mahol
avfilter/vf_v360: do not reset yaw/pitch/roll with reset_rot true
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9df3f147f5a1c11230f3b82fed9524a3ad14a7ae
---
libavfilter/vf_v360.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavfilter/vf_v360.c b/libavfilter/vf_v360.c
index 8a27e0fab2..5df273d375 100644
--- a/libavfilter/vf_v360.c
+++ b/libavfilter/vf_v360.c
@@ -4961,7 +4961,8 @@ static int process_command(AVFilterContext *ctx, const char *cmd, const char *ar
V360Context *s = ctx->priv;
int ret;
- s->yaw = s->pitch = s->roll = 0.f;
+ if (s->reset_rot <= 0)
+ s->yaw = s->pitch = s->roll = 0.f;
if (s->reset_rot < 0)
s->reset_rot = 0;
More information about the ffmpeg-cvslog
mailing list