You are using a bad workaround insteed of trying to fix the problem
Reinstall the codecs by hand (not with a codec pack) using the last Nic's release for Xvid and the 5.1.1 for Divx. And REMOVE ALL OTHER VERSION that are on your disc. Remove also ffdshow as the last version are really bugged (even if I didn't try the latest one, with ffvfw included, I guess it is bugged as all version are since june 2003 but they weren't before).
Last step : configure boith Divx AND Xvid to not make any postprocessing and to output as YV12 (called "enhanced YV mode" in Divx5.1.1)