]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
[PATCH] V4L: 899: fix rds raw data buffer handling bug which caused
authorHans J. Koch <koch@hjk-az.de>
Wed, 9 Nov 2005 05:38:39 +0000 (21:38 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 9 Nov 2005 15:56:29 +0000 (07:56 -0800)
Fix RDS raw data buffer handling bug, which caused decoding delays and
sometimes wrong data.

Signed-off-by: Hans J. Koch <koch@hjk-az.de>
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/video/saa6588.c

index 23ea548a71e0e826acf2814907efcedefa7472e7..dca3ddfd510fa0aa92170cbe788985fc2d5e08c0 100644 (file)
@@ -245,7 +245,7 @@ static void block_to_buf(struct saa6588 *s, unsigned char *blockbuf)
                s->wr_index = 0;
 
        if (s->wr_index == s->rd_index) {
-               s->rd_index++;
+               s->rd_index += 3;
                if (s->rd_index >= s->buf_size)
                        s->rd_index = 0;
        } else