summaryrefslogtreecommitdiffstats
path: root/video/filter/vf_rotate.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/filter/vf_rotate.c')
-rw-r--r--video/filter/vf_rotate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/filter/vf_rotate.c b/video/filter/vf_rotate.c
index 579c3ea24a..9f0c60dd44 100644
--- a/video/filter/vf_rotate.c
+++ b/video/filter/vf_rotate.c
@@ -47,7 +47,7 @@ static int lavfi_reconfig(struct vf_instance *vf,
struct vf_priv_s *p = vf_lw_old_priv(vf);
if (p->angle == 4) { // "auto"
int r = in->rotate;
- if (r < 0 || (r % 90) != 0) {
+ if (r < 0 || r >= 360 || (r % 90) != 0) {
MP_ERR(vf, "Can't apply rotation of %d degrees.\n", r);
return -1;
}