mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/vf_v360: do not reset yaw/pitch/roll with reset_rot true
This commit is contained in:
parent
9353d1a60f
commit
9df3f147f5
|
@ -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…
Reference in New Issue