mirror of https://bitbucket.org/ausocean/av.git
codec/mjpeg/jpeg.go: no longer need to convert dri to uint16.
This commit is contained in:
parent
4325b86a99
commit
0b848cb01b
|
@ -320,7 +320,7 @@ func writeHeader(p []byte, _type, width, height, nbqTab int, dri uint16, qtable
|
|||
if dri != 0 {
|
||||
binary.BigEndian.PutUint16(p[idx:], 0xff00|codeDRI)
|
||||
binary.BigEndian.PutUint16(p[idx+2:], 4)
|
||||
binary.BigEndian.PutUint16(p[idx+4:], uint16(dri))
|
||||
binary.BigEndian.PutUint16(p[idx+4:], dri)
|
||||
idx += 6
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue