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

pull/373/head
Paul B Mahol 3 years ago
parent 9353d1a60f
commit 9df3f147f5
  1. 3
      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;

Loading…
Cancel
Save