| 1431 | } |
| 1432 | |
| 1433 | static void parse_matrix_coeffs(uint16_t *dest, const char *str) |
| 1434 | { |
| 1435 | int i; |
| 1436 | const char *p = str; |
| 1437 | for (i = 0;; i++) { |
| 1438 | dest[i] = atoi(p); |
| 1439 | if (i == 63) |
| 1440 | break; |
| 1441 | p = strchr(p, ','); |
| 1442 | if (!p) { |
| 1443 | av_log(NULL, AV_LOG_FATAL, "Syntax error in matrix \"%s\" at coeff %d\n", str, i); |
| 1444 | exit_program(1); |
| 1445 | } |
| 1446 | p++; |
| 1447 | } |
| 1448 | } |
| 1449 | |
| 1450 | /* read file contents into a string */ |
| 1451 | static uint8_t *read_file(const char *filename) |
no test coverage detected