mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-12 02:04:58 +00:00
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;
|
V360Context *s = ctx->priv;
|
||||||
int ret;
|
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)
|
if (s->reset_rot < 0)
|
||||||
s->reset_rot = 0;
|
s->reset_rot = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user