Skip to content

Commit

Permalink
remove zero pad in mono VocFile
Browse files Browse the repository at this point in the history
  • Loading branch information
Raffaello committed Nov 11, 2023
1 parent 692501f commit 3cabca7
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,6 @@ namespace HyperSonicDrivers::files
for (int i = 0; i < d; i++)
buf.push_back(0);

if (buf.size() % 2 == 1)
buf.push_back(0);

m_dataSize = static_cast<uint32_t>(buf.size());
m_data = std::make_shared<uint8_t[]>(m_dataSize);
std::memcpy(m_data.get(), buf.data(), sizeof(uint8_t)* m_dataSize);
Expand Down

0 comments on commit 3cabca7

Please sign in to comment.