Copy macroblock data to a buffer before encoding it