X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FCECCommandHandler.cpp;h=2a5b375f6050875709d01f848fc31a3f267b6923;hb=bae71306a2b4f2bc684d418a3d15c78892ae2b2d;hp=fd7d003cd09cbc34bc6967cacc2ac41bc09f1fc1;hpb=5e822b09216e0d3c070d01b83015265129cc8c89;p=deb_libcec.git diff --git a/src/lib/implementations/CECCommandHandler.cpp b/src/lib/implementations/CECCommandHandler.cpp index fd7d003..2a5b375 100644 --- a/src/lib/implementations/CECCommandHandler.cpp +++ b/src/lib/implementations/CECCommandHandler.cpp @@ -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);