OSDN Git Service

media: staging: tegra-vde: Correct minimum size of U/V planes
authorDmitry Osipenko <digetx@gmail.com>
Sat, 17 Mar 2018 15:28:13 +0000 (11:28 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 4 May 2018 10:32:52 +0000 (06:32 -0400)
commit3830e4f2a907cab76464338d8ebfa943ab248d2e
treec176012a4577418284116ce8c64ce5ceb90a4dac
parentf072c44f36590bf2f34a5d18209811de7060967f
media: staging: tegra-vde: Correct minimum size of U/V planes

Stride of U/V planes must be aligned to 16 bytes (2 macroblocks). This
needs to be taken into account, otherwise it is possible to get a silent
memory corruption if dmabuf size is less than the size of decoded video
frame.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/tegra-vde/tegra-vde.c