bitparser: replace _raw_data.size() with _file_size

Signed-off-by: Michal Sieron <[email protected]>
This commit is contained in:
Michal Sieron
2023-01-20 09:09:41 +01:00
parent bc53c1d022
commit d127fb9554
+1 -1
View File
@@ -110,7 +110,7 @@ int BitParser::parse()
int pos = parseHeader();
/* _bit_length is length of data to send */
int rest_of_file_length = _raw_data.size() - pos;
int rest_of_file_length = _file_size - pos;
if (_bit_length < rest_of_file_length) {
printWarn("File is longer than bitstream length declared in the header: " +
std::to_string(rest_of_file_length) + " vs " + std::to_string(_bit_length)