summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authorods15 <ods15@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-12-17 20:00:16 +0000
committerods15 <ods15@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-12-17 20:00:16 +0000
commit87b66affe94c560bf96ca9a899ab98736c07af54 (patch)
tree3ecc9313ec61512e02036d0101c7cb3873cb1c1c /libmpcodecs
parentad181307647d45212469208b8bb9685cf03ece44 (diff)
downloadmpv-87b66affe94c560bf96ca9a899ab98736c07af54.tar.bz2
mpv-87b66affe94c560bf96ca9a899ab98736c07af54.tar.xz
deobfuscate some very simple code...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17216 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/vf_scale.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libmpcodecs/vf_scale.c b/libmpcodecs/vf_scale.c
index bc83b0b1f6..5a197fd1be 100644
--- a/libmpcodecs/vf_scale.c
+++ b/libmpcodecs/vf_scale.c
@@ -144,12 +144,12 @@ static int config(struct vf_instance_s* vf,
}
}
- if (vf->priv->w < 0 && (-vf->priv->w & 8)) {
- vf->priv->w = -(-vf->priv->w & ~8);
+ if (vf->priv->w <= -8) {
+ vf->priv->w += 8;
round_w = 1;
}
- if (vf->priv->h < 0 && (-vf->priv->h & 8)) {
- vf->priv->h = -(-vf->priv->h & ~8);
+ if (vf->priv->h <= -8) {
+ vf->priv->h += 8;
round_h = 1;
}