[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:
Родитель
4ac95af9a0
Коммит
6c3d67abdb
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче