mirror of https://bitbucket.org/ausocean/av.git
codec/mjpeg/jpeg.go: don't need to set c.blen to 0
This commit is contained in:
parent
ef4e9a3f69
commit
4834aa8ca2
|
@ -251,9 +251,7 @@ func (c *Context) ParsePayload(p []byte, m bool) error {
|
|||
qLen = len(qTable)
|
||||
}
|
||||
|
||||
c.blen = 0
|
||||
|
||||
c.blen += writeHeader(c.buf[c.blen:], int(t), int(width), int(height), qLen/64, dri, qTable)
|
||||
c.blen = writeHeader(c.buf[c.blen:], int(t), int(width), int(height), qLen/64, dri, qTable)
|
||||
}
|
||||
|
||||
if c.blen == 0 {
|
||||
|
|
Loading…
Reference in New Issue