From 9c916044222613660d660115b9719013405706de Mon Sep 17 00:00:00 2001 From: Michael Hunold Date: Tue, 22 Jul 2003 15:01:37 +0000 Subject: - really fix get_stc --- linux/drivers/media/dvb/ttpci/av7110.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux/drivers/media/dvb/ttpci') diff --git a/linux/drivers/media/dvb/ttpci/av7110.c b/linux/drivers/media/dvb/ttpci/av7110.c index 06465be8d..d06cfa588 100644 --- a/linux/drivers/media/dvb/ttpci/av7110.c +++ b/linux/drivers/media/dvb/ttpci/av7110.c @@ -3273,7 +3273,7 @@ static int dvb_get_stc(struct dmx_demux *demux, unsigned int num, DEB_EE(("av7110: fwstc = %04hx %04hx %04hx %04hx\n", fwstc[0], fwstc[1], fwstc[2], fwstc[3])); - *stc = (((uint64_t)(~fwstc[2]) & 1) << 32) | + *stc = (((uint64_t) ((fwstc[3] & 0x8000) >> 15)) << 32) | (((uint64_t) fwstc[1]) << 16) | ((uint64_t)fwstc[0]); *base = 1; -- cgit v1.2.3