summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorPhilip Gladstone <philipjsg@users.sourceforge.net>2002-11-30 17:14:07 +0000
committerPhilip Gladstone <philipjsg@users.sourceforge.net>2002-11-30 17:14:07 +0000
commit9e4e1659d694af5269d883ee54e809e0c9732002 (patch)
tree05b88a70f0e10fec3da1024974b1309152a79253 /libavcodec
parent9d6f1d52c5e0d109c79db373e10c3632ed4886a1 (diff)
downloadffmpeg-9e4e1659d694af5269d883ee54e809e0c9732002.tar.gz
Simplify an expression and eliminate a compile warning
Originally committed as revision 1293 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/imgresample.c2
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] +