Skip to content

Commit

Permalink
Merge pull request #97 from AdrianAtGoogle/missing_seek
Browse files Browse the repository at this point in the history
add missing seek to animation loading
  • Loading branch information
syoyo authored Oct 12, 2023
2 parents 86699be + fd82ac8 commit ca2a9a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/crate-reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,7 @@ bool CrateReader::ReadTimeSamples(value::TimeSamples *d) {

// Move to next location.
// sizeof(uint64) = sizeof(ValueRep)
_sr->seek_set(values_offset);
if (!_sr->seek_from_current(int64_t(sizeof(uint64_t) * num_values))) {
PUSH_ERROR_AND_RETURN_TAG(kTag, "Failed to seek over TimeSamples's values.");
}
Expand Down

0 comments on commit ca2a9a9

Please sign in to comment.