summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2007-10-21 13:09:10 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2007-10-21 13:09:10 +0200
commitab95acf7bb7b3e5cddaabdaa8497ec7fb2a97c99 (patch)
tree452e5a2395a4be3a9cccf1ed8fa62b1cb2a98b9a /linux/drivers/media
parent3917eec08ffe6fe8ba15fc6df349f6d1777b5086 (diff)
downloadmediapointer-dvb-s2-ab95acf7bb7b3e5cddaabdaa8497ec7fb2a97c99.tar.gz
mediapointer-dvb-s2-ab95acf7bb7b3e5cddaabdaa8497ec7fb2a97c99.tar.bz2
ivtv: yuv frame parameter fix
From: Ian Armstrong <ian@iarmst.demon.co.uk> 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: Ian Armstrong <ian@iarmst.demon.co.uk> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r--linux/drivers/media/video/ivtv/ivtv-irq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/ivtv/ivtv-irq.c b/linux/drivers/media/video/ivtv/ivtv-irq.c
index cc82ce028..ac174fc0d 100644
--- a/linux/drivers/media/video/ivtv/ivtv-irq.c
+++ b/linux/drivers/media/video/ivtv/ivtv-irq.c
@@ -803,7 +803,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;