codec/mjpeg/jpeg.go: no longer need to convert dri to uint16.

This commit is contained in:
Saxon 2020-01-07 13:12:15 +10:30
parent 4325b86a99
commit 0b848cb01b
1 changed files with 1 additions and 1 deletions

View File

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