Camera2: fix data copy array out of bound issue

We assumed that the Y stride was always larger or equal to chroma stride for YUV.
This isn't a reasonable assumption as the chroma stride could be larger for
interleaved UV format. This change uses the max row stride across all planes
as the intermediate array size.

Bug: 17913095
Change-Id: Idb390d27c39c364265f3a55c6ac4eaaa0b26bcf5
1 file changed