From 9df3f147f5a1c11230f3b82fed9524a3ad14a7ae Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sun, 24 Oct 2021 14:05:28 +0200 Subject: [PATCH] avfilter/vf_v360: do not reset yaw/pitch/roll with reset_rot true --- 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;