Browse Source

Fix find_CA_descriptor size check

Georgi Chorbadzhiyski 12 years ago
parent
commit
f74d195a5b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      tsfuncs_cat.c

+ 1
- 1
tsfuncs_cat.c View File

@@ -199,7 +199,7 @@ static int find_CA_descriptor(uint8_t *data, int data_len, enum CA_system req_CA
199 199
 		uint8_t this_length = data[1];
200 200
 		data     += 2;
201 201
 		data_len -= 2;
202
-		if (tag == 9 && this_length == 4) {
202
+		if (tag == 9 && this_length >= 4) {
203 203
 			uint16_t CA_ID = (data[0] << 8) | data[1];
204 204
 			uint16_t CA_PID = ((data[2] & 0x1F) << 8) | data[3];
205 205
 			if (ts_get_CA_sys(CA_ID) == req_CA_type) {

Loading…
Cancel
Save