Off-by-one error in RGB->YCC for loop.