Unified · Split
| @@ -102,7 +102,7 @@ static AVRational read_fps(const char* line, int* error) · 101 unmodified lines | ||
| 102 | 102 | line++; |
| 103 | 103 | for (; *line>='0' && *line<='9'; line++) { |
| 104 | 104 | // Truncate any numerator too large to fit into an int64_t |
| 105 | − if (num > (INT64_MAX - 9) / 10 || den > INT64_MAX / 10) | |
| 105 | + if (num > (INT64_MAX - 9) / 10ULL || den > INT64_MAX / 10ULL) | |
| 106 | 106 | break; |
| 107 | 107 | num = 10 * num + (*line - '0'); |
| 108 | 108 | den *= 10; |