1. An encoding apparatus having a direct mode as a prediction mode, the encoding apparatus comprising: a reference vector correcting unit that, when a pixel with opposite parity is referred to for obtaining a reference vector in the direct mode, performs correction by adding or subtracting a value corresponding to a half pixel to or from a value of the obtained reference vector; and a direct vector correcting unit that, when a pixel with opposite parity is referred to for obtaining a first and a second direct vector by temporally scaling the reference vector corrected by the reference vector correcting unit, performs correction by adding or subtracting a value corresponding to a half pixel to or from values of obtained direct vectors.