media: staging: tegra-vde: Align bitstream size to 16K
authorDmitry Osipenko <digetx@gmail.com>
Sat, 17 Mar 2018 15:28:11 +0000 (11:28 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 4 May 2018 10:31:22 +0000 (06:31 -0400)
commit17aed9041d5ba3c674be1b7e830162e489438d36
tree10eb614fbf378ff8c784956c87fde5d14cdb24ad
parenta2b2eff6ac2716f499defa590a6ec4ba379d765e
media: staging: tegra-vde: Align bitstream size to 16K

I've noticed that decoding fails sometime if size of bitstream buffer
isn't aligned to 16K, probably because HW fetches data from memory in
a 16K granularity and if the last chunk of data isn't aligned, HW reads
garbage data beyond the dmabuf and tries to parse it.

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