Changed chroma size calculation.  Used pointers for previous frame.