diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-08-24 05:49:00 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-08-24 05:49:00 +0300 |
commit | 8371df8b1c12bdae574370d77819c46d8280f20f (patch) | |
tree | 4fa06263b44443b3e8b56714d2efdde394ba2faa /source/blender/blenlib/intern/filereader_zstd.c | |
parent | a311ab6167b2999093d18e9451892a39ac6ae76b (diff) |
Cleanup: spelling
Diffstat (limited to 'source/blender/blenlib/intern/filereader_zstd.c')
-rw-r--r-- | source/blender/blenlib/intern/filereader_zstd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/filereader_zstd.c b/source/blender/blenlib/intern/filereader_zstd.c index 785a40cd1a1..55ce32713d9 100644 --- a/source/blender/blenlib/intern/filereader_zstd.c +++ b/source/blender/blenlib/intern/filereader_zstd.c @@ -79,7 +79,7 @@ static bool zstd_read_seek_table(ZstdReader *zstd) if (base->seek(base, -5, SEEK_END) < 0 || base->read(base, &flags, 1) != 1) { return false; } - /* Bit 7 indicates checksums. Bits 5 and 6 must be zero. */ + /* Bit 7 indicates check-sums. Bits 5 and 6 must be zero. */ bool has_checksums = (flags & 0x80); if (flags & 0x60) { return false; @@ -134,7 +134,7 @@ static bool zstd_read_seek_table(ZstdReader *zstd) zstd->seek.compressed_ofs[num_frames] = compressed_ofs; zstd->seek.uncompressed_ofs[num_frames] = uncompressed_ofs; - /* Seek to the end of the previous frame for the following BHead frame detection. */ + /* Seek to the end of the previous frame for the following #BHead frame detection. */ if (seek_frame_start != compressed_ofs || base->seek(base, seek_frame_start, SEEK_SET) < 0) { MEM_freeN(zstd->seek.compressed_ofs); MEM_freeN(zstd->seek.uncompressed_ofs); @@ -178,7 +178,7 @@ static const char *zstd_ensure_cache(ZstdReader *zstd, int frame) return zstd->seek.cached_content; } - /* Cached frame doesn't match, so discard it and cache the wanted one onstead. */ + /* Cached frame doesn't match, so discard it and cache the wanted one instead. */ MEM_SAFE_FREE(zstd->seek.cached_content); size_t compressed_size = zstd->seek.compressed_ofs[frame + 1] - zstd->seek.compressed_ofs[frame]; |