media: vicodec: use correct sizeimage value when draining
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 7 May 2019 09:30:24 +0000 (05:30 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 11 Jun 2019 15:31:42 +0000 (11:31 -0400)
commit8307f0ab0331ad8b8bb8af85df372e6bfda688e7
treeeb69cf3ac6587e34b9878da011a84243dd32677a
parentfbbbb2cd0b39acba0720354d4beb98f39b69a29f
media: vicodec: use correct sizeimage value when draining

After a resolution change is detected, q_data->sizeimage is updated
to the new format, but buf_prepare is still draining buffers that
need to use the old pre-resolution-change value. So store the sizeimage
value in q_data->vb2_sizeimage in queue_setup and use that in
buf_prepare.

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