This commit is contained in:
Alex Yatskov 2019-02-10 08:56:45 -08:00
parent 7da7f57001
commit 56ab677790

View File

@ -121,7 +121,14 @@ func readDirection(reader io.ReadSeeker, fileHead fileHeader) error {
bitReader := streaming.NewBitReader(reader) bitReader := streaming.NewBitReader(reader)
dirHead := readDirectionHeader(bitReader) dirHead := readDirectionHeader(bitReader)
if err := bitReader.Error(); err != nil {
return err
}
frameHead := readFrameHeader(bitReader, *dirHead) frameHead := readFrameHeader(bitReader, *dirHead)
if err := bitReader.Error(); err != nil {
return err
}
fmt.Printf("%+v\n", dirHead) fmt.Printf("%+v\n", dirHead)
fmt.Printf("%+v\n", frameHead) fmt.Printf("%+v\n", frameHead)