mirror of https://bitbucket.org/ausocean/av.git
codec/mjpeg/jpeg.go: made JFIF header label local const
This commit is contained in:
parent
e0397e1769
commit
bf865e48c5
|
@ -263,7 +263,8 @@ func writeHeader(p *putBuffer, _type, width, height, nbqTab, dri int, qtable []b
|
||||||
// Write JFIF header.
|
// Write JFIF header.
|
||||||
mark(p, codeAPP0)
|
mark(p, codeAPP0)
|
||||||
p.put16(16)
|
p.put16(16)
|
||||||
p.putBuf([]byte("JFIF\000"))
|
const jfifLabel = "JFIF\000"
|
||||||
|
p.putBuf([]byte(jfifLabel))
|
||||||
p.put16(0x0201)
|
p.put16(0x0201)
|
||||||
p.put8(0)
|
p.put8(0)
|
||||||
p.put16(1)
|
p.put16(1)
|
||||||
|
|
Loading…
Reference in New Issue