changeset 898:6d5e3fe7aea1 libavcodec

Simplify an expression and eliminate a compile warning
author philipjsg
date Sat, 30 Nov 2002 17:14:07 +0000
parents 3dbbdc2f8bd3
children 9d9a415e3dd9
files imgresample.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/imgresample.c	Wed Nov 27 01:20:42 2002 +0000
+++ b/imgresample.c	Sat Nov 30 17:14:07 2002 +0000
@@ -308,7 +308,7 @@
        we opt for aligned writes, as unaligned writes have a huge overhead.
        To do this, do enough scalar resamples to get dst 16-byte aligned.
     */
-    i = (16-((int)dst) & 0xf) & 0xf;
+    i = (-(int)dst) & 0xf;
     while(i>0) {
         sum = s[0 * wrap] * filter[0] +
         s[1 * wrap] * filter[1] +