From 5abb2285f50e5f8b68f107f29318237f9bb874cc Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Mon, 27 Feb 2012 12:19:04 +0400 Subject: [PATCH] zapit/src/scansdt.cpp: fix counter --- src/zapit/src/scansdt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zapit/src/scansdt.cpp b/src/zapit/src/scansdt.cpp index cc001f7f8..535456b3f 100644 --- a/src/zapit/src/scansdt.cpp +++ b/src/zapit/src/scansdt.cpp @@ -341,7 +341,7 @@ bool CSdt::ParseServiceDescriptor(ServiceDescription * service, ServiceDescripto CZapitChannel * CSdt::CheckChannelId(t_service_id service_id) { int flist[5] = { freq_id, freq_id-1, freq_id+1, freq_id-2, freq_id+2 }; - for(int i = 0; i < 6; i++) { + for(int i = 0; i < 5; i++) { freq_id_t freq = flist[i]; t_channel_id channel_id = CREATE_CHANNEL_ID64; CZapitChannel * channel = CServiceManager::getInstance()->FindChannel(channel_id);