mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 08:55:11 +01:00
Add "RAC + Zeroes" codec
This commit is contained in:
1 parent
1a76fab33e
commit
88220a7591
6 files changed
+78
-15
No files matched your search
@@ -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,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user