Add "RAC + Zeroes" codec

This commit is contained in:
Nigel Tao committed 2019-08-09 21:46:28 +10:00
1 parent 1a76fab33e
commit 88220a7591
6 files changed
+78 -15

No files matched your search

+2 -6
View File
@@ -357,10 +357,6 @@ func (w *ChunkWriter) AddChunk(
w.err = errTooManyChunks
return w.err
}
if codec == 0 {
w.err = errInvalidCodec
return w.err
}
if err := w.initialize(); err != nil {
return err
@@ -383,8 +379,8 @@ func (w *ChunkWriter) AddChunk(
}
var emptyRACFile = [32]byte{
0x72, 0xC3, 0x63, 0x01, 0xE8, 0xB4, 0x00, 0xFF,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
0x72, 0xC3, 0x63, 0x01, 0x0D, 0xF8, 0x00, 0xFF,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xFF,
0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01,
}