[PATCH 1/2] dvbv5-scan: correction frequency parsing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Stefan Ringel <linuxtv@xxxxxxxxxxxxxxx>

Signed-off-by: Stefan Ringel <linuxtv@xxxxxxxxxxxxxxx>
---
 utils/dvb/descriptors.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/utils/dvb/descriptors.c b/utils/dvb/descriptors.c
index a492b6c..fcad464 100644
--- a/utils/dvb/descriptors.c
+++ b/utils/dvb/descriptors.c
@@ -365,7 +365,7 @@ static void parse_NIT_DVBT(struct nit_table *nit_table,
 
 	*freq = realloc(*freq, 1);
 	nit_table->frequency_len = 1;
-	nit_table->frequency[0] = bcd_to_int(&buf[2], 32) * 10; /* KHz */
+	nit_table->frequency[0] = ((buf[2] << 24) | (buf[3] << 16) | (buf[4] << 8) | (buf[5])) * 10; /* KHz */
 
 	nit_table->has_dvbt = 1;
 	if (nit_table->delivery_system != SYS_DVBT2)
-- 
1.7.7

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux