Previous 15994 Revisions Next

r14553 Monday 20th February, 2012 at 14:37:48 UTC by Miodrag Milanović
Fixed empty CHD creation for HDD's (no whatsnew)
[src/tools]chdman.c

src/tools/chdman.c
r14552r14553
963963      input_start = parse_number(*input_start_hunk_str) * hunkbytes;
964964   if (input_start_frame_str != NULL)
965965      input_start = parse_number(*input_start_frame_str) * framebytes;
966   if (input_start >= input_end)
966   if (input_start > input_end)
967967      report_error(1, "Input start offset greater than input file size");
968968
969969   // process input length
r14552r14553
16131613   // process input start/end (needs to know hunk_size)
16141614   UINT64 input_start;
16151615   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);
16171617
16181618   // process compression
16191619   chd_codec_type compression[4];

Previous 15994 Revisions Next


© 1998-2018 The MESS Team