cec: fix parameter parsing in SetVendorId()
authorLars Op den Kamp <lars@opdenkamp.eu>
Thu, 10 Nov 2011 17:30:00 +0000 (18:30 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Thu, 10 Nov 2011 18:00:20 +0000 (19:00 +0100)
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);