From c447d866b76f1ae346c346111467eaafed09db30 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 4 Oct 2022 03:53:25 +0200 Subject: nvfbc patch --- include/NvFBCLibrary.hpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'include/NvFBCLibrary.hpp') diff --git a/include/NvFBCLibrary.hpp b/include/NvFBCLibrary.hpp index 3a642f4..35b5c7f 100644 --- a/include/NvFBCLibrary.hpp +++ b/include/NvFBCLibrary.hpp @@ -75,8 +75,16 @@ public: status = nv_fbc_function_list.nvFBCCreateHandle(&nv_fbc_handle, &create_params); if(status != NVFBC_SUCCESS) { - fprintf(stderr, "Error: %s\n", nv_fbc_function_list.nvFBCGetLastErrorStr(nv_fbc_handle)); - return false; + // Reverse engineering for interoperability + const uint8_t enable_key[] = { 0xac, 0x10, 0xc9, 0x2e, 0xa5, 0xe6, 0x87, 0x4f, 0x8f, 0x4b, 0xf4, 0x61, 0xf8, 0x56, 0x27, 0xe9 }; + create_params.privateData = enable_key; + create_params.privateDataSize = 16; + + status = nv_fbc_function_list.nvFBCCreateHandle(&nv_fbc_handle, &create_params); + if(status != NVFBC_SUCCESS) { + fprintf(stderr, "Error: %s\n", nv_fbc_function_list.nvFBCGetLastErrorStr(nv_fbc_handle)); + return false; + } } fbc_handle_created = true; -- cgit v1.2.3