[PATCH] V4L: 899: fix rds raw data buffer handling bug which caused

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>
This commit is contained in:
Hans J. Koch 2005-11-08 21:38:39 -08:00 committed by Linus Torvalds
parent 4ac95af9a0
commit 6c3d67abdb
1 changed files with 1 additions and 1 deletions

View 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