Currently disabling IDCT_SCALING_SUPPORTED doesn't work, because couple more cases need to be ifdef'ed.
Patch attached.
Checked into trunk and branches/1.4.x. Thanks!
Checked into trunk and branches/1.4.x. Thanks!