media: vicodec: fix initial stateless sizeimage value
The initial sizeimage value was wrong for the stateless decoder. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
d421ba0c16
commit
518f6b9a14
@ -1799,8 +1799,10 @@ static int vicodec_open(struct file *file)
|
||||
raw_size = 1280 * 720 * info->sizeimage_mult / info->sizeimage_div;
|
||||
comp_size = 1280 * 720 * pixfmt_fwht.sizeimage_mult /
|
||||
pixfmt_fwht.sizeimage_div;
|
||||
if (ctx->is_enc || ctx->is_stateless)
|
||||
if (ctx->is_enc)
|
||||
ctx->q_data[V4L2_M2M_SRC].sizeimage = raw_size;
|
||||
else if (ctx->is_stateless)
|
||||
ctx->q_data[V4L2_M2M_SRC].sizeimage = comp_size;
|
||||
else
|
||||
ctx->q_data[V4L2_M2M_SRC].sizeimage =
|
||||
comp_size + sizeof(struct fwht_cframe_hdr);
|
||||
|
Loading…
Reference in New Issue
Block a user