repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cec: fix parameter parsing in SetVendorId()
[deb_libcec.git]
/
src
/
lib
/
implementations
/
CECCommandHandler.cpp
diff --git
a/src/lib/implementations/CECCommandHandler.cpp
b/src/lib/implementations/CECCommandHandler.cpp
index fd7d003cd09cbc34bc6967cacc2ac41bc09f1fc1..2a5b375f6050875709d01f848fc31a3f267b6923 100644
(file)
--- a/
src/lib/implementations/CECCommandHandler.cpp
+++ b/
src/lib/implementations/CECCommandHandler.cpp
@@
-409,8
+409,8
@@
void CCECCommandHandler::SetVendorId(const cec_command &command)
return;
}
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);
(uint64_t)command.parameters[2];
CCECBusDevice *device = GetDevice((cec_logical_address) command.initiator);