From 51efdb96b4d74c554bd2bbb2df873630e14166f6 Mon Sep 17 00:00:00 2001 From: leslie Date: Tue, 14 Oct 2008 17:28:18 +0800 Subject: [PATCH] update testing --- testing/testECM.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/testing/testECM.c b/testing/testECM.c index 65cb084..93b5c0d 100644 --- a/testing/testECM.c +++ b/testing/testECM.c @@ -24,7 +24,7 @@ int main(int argc, char *argv[]) cLogging::SetModuleOption(LCLASS(7,0x20<<4),false); // Nagra L_SYS_CPUSTATS cLogging::SetModuleOption(LCLASS(16,0x20<<5),false); // Viacsess L_SYS_DISASM unsigned char ecm[4096]; - ReadRaw(argv[6],ecm,sizeof(ecm)); + int len=ReadRaw(argv[6],ecm,sizeof(ecm)); int caid=strtol(argv[3],0,0); int provid=strtol(argv[4],0,0); @@ -36,10 +36,15 @@ int main(int argc, char *argv[]) while((sys=cSystems::FindBySysId(caid,false,lastPri))) { lastPri=sys->Pri(); printf("processing with module '%s'\n",sys->Name()); - bool res=sys->ProcessECM(&ecmD,ecm); - if(res) { - printf("resulting CW: "); - SDump(sys->CW(),16); + bool res=false; + for(int i=0; iProcessECM(&ecmD,&ecm[i])) { + printf("resulting CW: "); + SDump(sys->CW(),16); + res=true; + } + i+=s; } delete sys; if(res) break; -- 2.39.5