mirror of
https://github.com/onyx-and-iris/vbantxt.git
synced 2024-12-03 15:20:47 +00:00
fix pointer
This commit is contained in:
parent
be11239d39
commit
5a5a6fa893
@ -22,7 +22,7 @@ type packet struct {
|
||||
bpsIndex int
|
||||
channel int
|
||||
framecounter []byte
|
||||
hbuf bytes.Buffer
|
||||
hbuf *bytes.Buffer
|
||||
}
|
||||
|
||||
// newPacket returns a packet struct with default values, framecounter at 0.
|
||||
@ -35,7 +35,7 @@ func newPacket(streamname string) packet {
|
||||
bpsIndex: 0,
|
||||
channel: 0,
|
||||
framecounter: make([]byte, 4),
|
||||
hbuf: *bytes.NewBuffer(make([]byte, headerSz)),
|
||||
hbuf: bytes.NewBuffer(make([]byte, headerSz)),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user