diff --git a/codec/mjpeg/jpeg.go b/codec/mjpeg/jpeg.go index 1fec0d89..4e681e76 100644 --- a/codec/mjpeg/jpeg.go +++ b/codec/mjpeg/jpeg.go @@ -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 }