media: vicodec: fix wrong sizeimage
authorHans Verkuil <hverkuil@xs4all.nl>
Sat, 1 Sep 2018 12:38:07 +0000 (08:38 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 11 Sep 2018 12:38:12 +0000 (08:38 -0400)
commit55f6fe09f14bc3aa690463027ad3f9cb6b9831ce
tree58cae91b9bbc6928dc016f00c8a19d6ea749daba
parent96cb579cc47380a22d3f64da7877e13a7566e296
media: vicodec: fix wrong sizeimage

The initial sizeimage for the compressed decoder output was wrong.
The size of the output was incorrectly used to calculate the image
size, that should have been the size of the capture.

Rework the code to fix this.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vicodec/vicodec-core.c