Commit 096e5a25 authored by philipjsg's avatar philipjsg

Simplify an expression and eliminate a compile warning


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1293 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 869df7f1
...@@ -308,7 +308,7 @@ void v_resample16_altivec(UINT8 *dst, int dst_width, UINT8 *src, int wrap, ...@@ -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. 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. 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) { while(i>0) {
sum = s[0 * wrap] * filter[0] + sum = s[0 * wrap] * filter[0] +
s[1 * wrap] * filter[1] + s[1 * wrap] * filter[1] +
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment