summaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/libmpcodecs/vf_decimate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/libmpcodecs/vf_decimate.c b/libavfilter/libmpcodecs/vf_decimate.c
index 1fd7bce..2d2aaf0 100644
--- a/libavfilter/libmpcodecs/vf_decimate.c
+++ b/libavfilter/libmpcodecs/vf_decimate.c
@@ -82,8 +82,8 @@ static int diff_MMX(unsigned char *old, unsigned char *new, int os, int ns)
static int diff_C(unsigned char *old, unsigned char *new, int os, int ns)
{
int x, y, d=0;
- for (y = 8; y; y--) {
- for (x = 8; x; x--) {
+ for (y = 0; y < 8; y++) {
+ for (x = 0; x < 8; x++) {
d += abs(new[x] - old[x]);
}
new += ns;
OpenPOWER on IntegriCloud