[media] sh_veu: fix the buffer size calculation
authorKatsuya Matsubara <matsu@igel.co.jp>
Tue, 23 Apr 2013 10:51:37 +0000 (07:51 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 9 Jun 2013 00:50:45 +0000 (21:50 -0300)
commit697a6d2387692c7f9c94f3bfb3dac474aa840f02
tree592e39902a026c0426a2c58ea6cf02fa011404f5
parent6abb3cf2c34554590791b7486e0e32b291feacc4
[media] sh_veu: fix the buffer size calculation

The 'bytesperline' value only indicates the stride of the Y plane
if the color format is planar, such as NV12. When calculating
the total plane size, the size of CbCr plane must also be considered.

Signed-off-by: Katsuya Matsubara <matsu@igel.co.jp>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/sh_veu.c