Change lzw from LSB-first to MSB-first. This should probably be a major version bump, but who's using lzw, really

This commit is contained in:
Seednode 2024-01-08 17:42:13 -06:00
parent 37436377cf
commit 656c74b883
2 changed files with 3 additions and 3 deletions

View File

@ -113,7 +113,7 @@ func getReader(format string, file io.Reader) (io.Reader, error) {
case "lz4":
return lz4.NewReader(file), nil
case "lzw":
return lzw.NewReader(file, lzw.LSB, 8), nil
return lzw.NewReader(file, lzw.MSB, 8), nil
case "none":
return io.NopCloser(file), nil
case "snappy":
@ -156,7 +156,7 @@ func getWriter(format string, file io.WriteCloser) (io.WriteCloser, error) {
return encoder, nil
case format == "lzw":
return lzw.NewWriter(file, lzw.LSB, 8), nil
return lzw.NewWriter(file, lzw.MSB, 8), nil
case format == "none":
return file, nil
case format == "snappy":

View File

@ -17,7 +17,7 @@ import (
const (
AllowedCharacters string = `^[A-z0-9.\-_]+$`
ReleaseVersion string = "4.0.5"
ReleaseVersion string = "4.1.0"
)
var (