OSDN Git Service

[media] vivid: fix typo in plane size checks
authorHans Verkuil <hans.verkuil@cisco.com>
Sat, 7 Mar 2015 15:19:36 +0000 (12:19 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 2 Apr 2015 23:29:19 +0000 (20:29 -0300)
commit360565fcf72637258ebe6d3984c669bc9d86f7cd
treef38cc3891b921e55c18edabfcef04b82c3f9783f
parent9832e0e013c5cbbf688c1c2421a0b05e01fe409b
[media] vivid: fix typo in plane size checks

The plane size check was hardcoded to plane 0 instead of using the plane
index.

This failed when using the NV61M format which has a larger plane size for
the second plane compared to the first plane.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/vivid/vivid-vid-cap.c