提交 91b5841e 编写于 作者: P Philipp Zabel 提交者: Mauro Carvalho Chehab

[media] coda: lock capture frame size to output frame size when streaming

As soon as the output queue is streaming, let try_fmt on the capture side
only allow the frame size that was set on the output side.
Acked-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: NKamil Debski <k.debski@samsung.com>
Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
上级 eabed931
......@@ -719,6 +719,9 @@ static int coda_try_fmt_vid_cap(struct file *file, void *priv,
f->fmt.pix.pixelformat);
if (!codec)
return -EINVAL;
f->fmt.pix.width = q_data_src->width;
f->fmt.pix.height = q_data_src->height;
} else {
/* Otherwise determine codec by encoded format, if possible */
codec = coda_find_codec(ctx->dev, V4L2_PIX_FMT_YUV420,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册