Fix errors in code
Correct the chroma offset calculations for Yamato