Fix bug where match frames were not properly converted to bytes

This commit is contained in:
Marcus Holland-Moritz 2023-08-19 09:28:10 +02:00
parent 24829e2efe
commit 65a16dc214

View File

@ -1074,11 +1074,13 @@ void segmenter_<LoggerPolicy, GranularityPolicy>::segment_and_add_data(
frames_written += num_to_write; frames_written += num_to_write;
finish_chunk(chkable); finish_chunk(chkable);
chkable.add_chunk(block_num, match_off, match_len); chkable.add_chunk(block_num, this->frames_to_bytes(match_off),
this->frames_to_bytes(match_len));
prog_.chunk_count++; prog_.chunk_count++;
frames_written += match_len; frames_written += match_len;
prog_.saved_by_segmentation += match_len; prog_.saved_by_segmentation += this->frames_to_bytes(match_len);
offset_in_frames = frames_written; offset_in_frames = frames_written;