changeset 17215:73ed22ef2035

deobfuscate some very simple code...
author ods15
date Sat, 17 Dec 2005 20:00:16 +0000
parents 2429b8a26918
children 0fd3e0cc4fd0
files libmpcodecs/vf_scale.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_scale.c	Sat Dec 17 19:58:24 2005 +0000
+++ b/libmpcodecs/vf_scale.c	Sat Dec 17 20:00:16 2005 +0000
@@ -144,12 +144,12 @@
 	}
     }
 
-    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;
     }