src/tools/chdman.c
| r14552 | r14553 | |
| 963 | 963 | input_start = parse_number(*input_start_hunk_str) * hunkbytes; |
| 964 | 964 | if (input_start_frame_str != NULL) |
| 965 | 965 | input_start = parse_number(*input_start_frame_str) * framebytes; |
| 966 | | if (input_start >= input_end) |
| 966 | if (input_start > input_end) |
| 967 | 967 | report_error(1, "Input start offset greater than input file size"); |
| 968 | 968 | |
| 969 | 969 | // process input length |
| r14552 | r14553 | |
| 1613 | 1613 | // process input start/end (needs to know hunk_size) |
| 1614 | 1614 | UINT64 input_start; |
| 1615 | 1615 | UINT64 input_end; |
| 1616 | | parse_input_start_end(params, core_fsize(input_file), hunk_size, hunk_size, input_start, input_end); |
| 1616 | parse_input_start_end(params, input_file ? core_fsize(input_file) : 0, hunk_size, hunk_size, input_start, input_end); |
| 1617 | 1617 | |
| 1618 | 1618 | // process compression |
| 1619 | 1619 | chd_codec_type compression[4]; |