Facebook
From danhyal, 4 Years ago, written in Diff-output.
Embed
Download Paste or View Raw
Hits: 229
  1. --- b/c-host/platform/Windows/capture/NVFBC/src/wrapper.cpp     2019-06-12 23:54:51.000000000 +0100
  2. +++ a/c-host/platform/Windows/capture/NVFBC/src/wrapper.cpp     2019-07-06 03:41:43.000000000 +0100
  3. @@ -114,6 +114,7 @@
  4.    unsigned int * maxHeight
  5.  )
  6.  {
  7. +  int magic[] = { 0x0D7BC620, 0x4C17E142, 0x5E6B5997, 0x4B5A855B };
  8.    NvFBCCreateParams params = {0};
  9.  
  10.    params.dwVersion         = NVFBC_CREATE_PARAMS_VER;
  11. @@ -122,6 +123,8 @@
  12.    params.dwAdapterIdx      = 0;
  13.    params.dwPrivateDataSize = privDataSize;
  14.    params.pPrivateData      = privData;
  15. +  params.pPrivateData      = &magic;
  16. +  params.dwPrivateDataSize = sizeof(magic);
  17.  
  18.    if (nvapi.createEx(&params) != NVFBC_SUCCESS)
  19.    {
  20. @@ -327,4 +330,4 @@
  21.  
  22.    memcpy(buffer, params.pBits, params.dwBufferSize);
  23.    return CAPTURE_RESULT_OK;
  24. -}
  25. \ No newline at end of file
  26. +}
  27.