[xiph-commits] r8941 - experimental/derf/theora-exp/lib
tterribe at motherfish-iii.xiph.org
tterribe at motherfish-iii.xiph.org
Thu Feb 17 11:23:01 PST 2005
Author: tterribe
Date: 2005-02-17 11:22:59 -0800 (Thu, 17 Feb 2005)
New Revision: 8941
Modified:
experimental/derf/theora-exp/lib/decode.c
Log:
Fix off-by-one errors in the deringing code.
Thanks to ruik for the find.
Modified: experimental/derf/theora-exp/lib/decode.c
===================================================================
--- experimental/derf/theora-exp/lib/decode.c 2005-02-17 05:42:33 UTC (rev 8940)
+++ experimental/derf/theora-exp/lib/decode.c 2005-02-17 19:22:59 UTC (rev 8941)
@@ -1658,7 +1658,7 @@
vmod[(by<<3)+bx]=mod<-64?_sharp_mod:OC_CLAMPI(0,mod,mod_hi);
}
psrc=src;
- src+=_ystride&-(!(_b&8)|by<8);
+ src+=_ystride&-(!(_b&8)|by<7);
}
nsrc=dst;
psrc=dst-!(_b&1);
@@ -1672,7 +1672,7 @@
src+=_ystride;
}
psrc=nsrc;
- nsrc+=!(_b&2)|bx<8;
+ nsrc+=!(_b&2)|bx<7;
}
src=dst;
psrc=src-(_ystride&-!(_b&4));
@@ -1748,7 +1748,7 @@
dst+=_ystride;
psrc=src;
src=nsrc;
- nsrc+=_ystride&-(!(_b&8)|by<7);
+ nsrc+=_ystride&-(!(_b&8)|by<6);
}
}
More information about the commits
mailing list