avfilter/vf_v360: do not reset yaw/pitch/roll with reset_rot true

This commit is contained in:
Paul B Mahol 2021-10-24 14:05:28 +02:00
parent 9353d1a60f
commit 9df3f147f5
1 changed files with 2 additions and 1 deletions

View File

@ -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;