提交 6c3d67ab 编写于 作者: H Hans J. Koch 提交者: Linus Torvalds

[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: NHans J. Koch <koch@hjk-az.de>
Signed-off-by: NMichael Krufky <mkrufky@m1k.net>
Signed-off-by: NMauro Carvalho Chehab <mchehab@brturbo.com.br>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 4ac95af9
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册