Macroblock index checking