diff options
author | Paul B Mahol <onemda@gmail.com> | 2021-10-24 14:05:28 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2021-10-24 14:08:10 +0200 |
commit | 9df3f147f5a1c11230f3b82fed9524a3ad14a7ae (patch) | |
tree | 55da976c713bc576dd038d6564b49b5f207ef20b /libavfilter/vf_v360.c | |
parent | 9353d1a60ffbb1031ba36c0a53d0e2085389b601 (diff) | |
download | ffmpeg-9df3f147f5a1c11230f3b82fed9524a3ad14a7ae.tar.gz |
avfilter/vf_v360: do not reset yaw/pitch/roll with reset_rot true
Diffstat (limited to 'libavfilter/vf_v360.c')
-rw-r--r-- | libavfilter/vf_v360.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |