Skip to content

Commit

Permalink
Merge pull request #521 from happycube/issue-477
Browse files Browse the repository at this point in the history
Fix for issue #477
  • Loading branch information
Simon Inns committed Jul 30, 2020
2 parents 0397ed8 + 85dfd9a commit 3cfa2a7
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 3cfa2a7

Please sign in to comment.