cec: fix parameter parsing in SetVendorId()
[deb_libcec.git] / src / lib / implementations / CECCommandHandler.cpp
index fd7d003cd09cbc34bc6967cacc2ac41bc09f1fc1..2a5b375f6050875709d01f848fc31a3f267b6923 100644 (file)
@@ -409,8 +409,8 @@ void CCECCommandHandler::SetVendorId(const cec_command &command)
     return;
   }
 
-  uint64_t iVendorId = ((uint64_t)command.parameters[0] << 3) +
-                       ((uint64_t)command.parameters[1] << 2) +
+  uint64_t iVendorId = ((uint64_t)command.parameters[0] << 16) +
+                       ((uint64_t)command.parameters[1] << 8) +
                         (uint64_t)command.parameters[2];
 
   CCECBusDevice *device = GetDevice((cec_logical_address) command.initiator);