diff options
author | Hans J. Koch <koch@hjk-az.de> | 2005-11-09 00:38:39 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 10:56:29 -0500 |
commit | 6c3d67abdb79ff3e22cd19476c05294274434143 (patch) | |
tree | 04576b0cd46655e49367f5c32b78bb789788b0f2 | |
parent | 4ac95af9a0bdc33f18e6a7532ac5319b2d4ab8c2 (diff) |
[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>
-rw-r--r-- | drivers/media/video/saa6588.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/saa6588.c b/drivers/media/video/saa6588.c index 23ea548a71e0..dca3ddfd510f 100644 --- a/drivers/media/video/saa6588.c +++ b/drivers/media/video/saa6588.c | |||
@@ -245,7 +245,7 @@ static void block_to_buf(struct saa6588 *s, unsigned char *blockbuf) | |||
245 | s->wr_index = 0; | 245 | s->wr_index = 0; |
246 | 246 | ||
247 | if (s->wr_index == s->rd_index) { | 247 | if (s->wr_index == s->rd_index) { |
248 | s->rd_index++; | 248 | s->rd_index += 3; |
249 | if (s->rd_index >= s->buf_size) | 249 | if (s->rd_index >= s->buf_size) |
250 | s->rd_index = 0; | 250 | s->rd_index = 0; |
251 | } else | 251 | } else |