Silence some Coverity warnings

None of this really matters.
This commit is contained in:
wm4
2014-11-21 09:59:58 +01:00
parent e082c2c3df
commit 86b521f7df
4 changed files with 4 additions and 2 deletions

View File

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