[PATCH 2/2] dvbv5-scan: remove pointer shift

[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 |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/utils/dvb/descriptors.c b/utils/dvb/descriptors.c
index fcad464..d034e8b 100644
--- a/utils/dvb/descriptors.c
+++ b/utils/dvb/descriptors.c
@@ -713,10 +713,9 @@ void parse_descriptor(enum dvb_tables type,
 				&service_table->provider_alias,
 				&buf[4], buf[3],
 				default_charset, output_charset);
-			buf += 4 + buf[3];
 			parse_string(&service_table->service_name,
 				&service_table->service_alias,
-				&buf[1], buf[0],
+				&buf[5 + buf[3]], buf[4 + buf[3]],
 				default_charset, output_charset);
 			if (dvb_desc->verbose) {
 				if (service_table->provider_name)
-- 
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