Hi, please try thing on your machine: When I changed in portab.h #define CACHE_LINE 16 to #define CACHE_LINE 32 XVID got faster by 2 percent. This was on Pentium3 where cacheline actually _is_ 32 byte. On Athlon or P4 you might want to try 64 (changing even 4 bits). gruel