mirror of https://bitbucket.org/ausocean/av.git
codec/mjpeg/jpeg.go: removed white space
This commit is contained in:
parent
723166ec50
commit
ca9c1ad425
|
@ -278,7 +278,7 @@ func (c *Context) ParsePayload(p []byte, m bool) error {
|
||||||
// TODO: could also check offset with how many bytes we currently have
|
// TODO: could also check offset with how many bytes we currently have
|
||||||
// to determine if there are missing frames.
|
// to determine if there are missing frames.
|
||||||
|
|
||||||
// Write frame data
|
// Write frame data.
|
||||||
rem := len(p)
|
rem := len(p)
|
||||||
c.blen += copy(c.buf[c.blen:], p[idx:rem])
|
c.blen += copy(c.buf[c.blen:], p[idx:rem])
|
||||||
idx += rem
|
idx += rem
|
||||||
|
@ -312,7 +312,6 @@ func writeHeader(p []byte, _type, width, height, nbqTab int, dri uint16, qtable
|
||||||
idx += 6
|
idx += 6
|
||||||
|
|
||||||
idx += copy(p[idx:], jfifLabel)
|
idx += copy(p[idx:], jfifLabel)
|
||||||
|
|
||||||
binary.BigEndian.PutUint16(p[idx:], jfifVer)
|
binary.BigEndian.PutUint16(p[idx:], jfifVer)
|
||||||
p[idx+2] = jfifDensityUnit
|
p[idx+2] = jfifDensityUnit
|
||||||
binary.BigEndian.PutUint16(p[idx+3:], jfifXDensity)
|
binary.BigEndian.PutUint16(p[idx+3:], jfifXDensity)
|
||||||
|
|
Loading…
Reference in New Issue