|
@@ -347,8 +347,8 @@ static int analyze(const uint8_t *buf, int size, int packet_size, int *index){ |
|
|
|
|
|
|
|
|
memset(stat, 0, packet_size*sizeof(int)); |
|
|
memset(stat, 0, packet_size*sizeof(int)); |
|
|
|
|
|
|
|
|
for(x=i=0; i<size; i++){ |
|
|
|
|
|
if(buf[i] == 0x47){ |
|
|
|
|
|
|
|
|
for(x=i=0; i<size-3; i++){ |
|
|
|
|
|
if(buf[i] == 0x47 && !(buf[i+1] & 0x80) && (buf[i+3] & 0x30)){ |
|
|
stat[x]++; |
|
|
stat[x]++; |
|
|
if(stat[x] > best_score){ |
|
|
if(stat[x] > best_score){ |
|
|
best_score= stat[x]; |
|
|
best_score= stat[x]; |
|
|