diff options
author | Philip Gladstone <philipjsg@users.sourceforge.net> | 2002-11-30 17:14:07 +0000 |
---|---|---|
committer | Philip Gladstone <philipjsg@users.sourceforge.net> | 2002-11-30 17:14:07 +0000 |
commit | 9e4e1659d694af5269d883ee54e809e0c9732002 (patch) | |
tree | 05b88a70f0e10fec3da1024974b1309152a79253 | |
parent | 9d6f1d52c5e0d109c79db373e10c3632ed4886a1 (diff) | |
download | ffmpeg-9e4e1659d694af5269d883ee54e809e0c9732002.tar.gz |
Simplify an expression and eliminate a compile warning
Originally committed as revision 1293 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/imgresample.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/imgresample.c b/libavcodec/imgresample.c index 630f2eb2c6..b1cfab9734 100644 --- a/libavcodec/imgresample.c +++ b/libavcodec/imgresample.c @@ -308,7 +308,7 @@ void v_resample16_altivec(UINT8 *dst, int dst_width, UINT8 *src, int wrap, 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] + |