提交 166983cd 编写于 作者: I Ian Armstrong 提交者: Mauro Carvalho Chehab

V4L/DVB (6714): ivtv: yuv frame parameter fix

Inadvertently missed a line when converting code to new hardware buffering
method. In some circumstances, this would lead to a frame being displayed
using parameters belonging to another frame.
Signed-off-by: NIan Armstrong <ian@iarmst.demon.co.uk>
Signed-off-by: NHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 a3e5f5e2
......@@ -797,7 +797,7 @@ static void ivtv_irq_vsync(struct ivtv *itv)
/* Check if we need to update the yuv registers */
if ((yi->yuv_forced_update || yi->new_frame_info[last_dma_frame].update) && last_dma_frame != -1) {
if (!yi->new_frame_info[last_dma_frame].update)
last_dma_frame = (last_dma_frame - 1) & 3;
last_dma_frame = (u8)(last_dma_frame - 1) % IVTV_YUV_BUFFERS;
if (yi->new_frame_info[last_dma_frame].src_w) {
yi->update_frame = last_dma_frame;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册