Hey, i use this library to read .ANI cursor files (https://www.daubnet.com/en/file-format-ani)
However when using a range-based for loop like this:
riffcpp::Chunk chunk(file_buffer, size);
std::vector<char> cursor_data;
for(auto subchunk : chunk)
{
if (subchunk.type() == fram_id)
{
cursor_data.resize(subchunk.size());
subchunk.read_data(cursor_data.data(), cursor_data.size());
}
}
The library will just crash inside the for-loop. Are there other ways to iterate chunks?
See the screenshot attached for the error:
