codec/mjpeg/jpeg.go: don't need to set c.blen to 0

This commit is contained in:
Saxon 2020-01-04 13:53:04 +10:30
parent ef4e9a3f69
commit 4834aa8ca2
1 changed files with 1 additions and 3 deletions

View File

@ -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 {