Skip to content

Commit

Permalink
Fix for issue #477
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Inns committed Jul 30, 2020
1 parent 0397ed8 commit 85dfd9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/ld-lds-converter/dataconverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ void DataConverter::unpackFile(void)
while(!isComplete) {
// Input buffer must be divisible by 5 bytes due to 10-bit data format
qint32 bufferSizeInBytes = (5 * 1024 * 1024) * 4; // 5MiB * 4 = 20MiBytes
inputBuffer.resize(bufferSizeInBytes);
inputBuffer.fill(0, bufferSizeInBytes);

// Every 5 input bytes is 4 output words (8 bytes)
outputBuffer.resize((bufferSizeInBytes / 5) * 8);
Expand Down

0 comments on commit 85dfd9a

Please sign in to comment.