Skip to content

Commit

Permalink
NVENC: Fix magic number in patch_linux for driver version 530.xx
Browse files Browse the repository at this point in the history
  • Loading branch information
ventureoo authored and skbeh committed Jun 16, 2023
1 parent b3699ad commit 85d5e93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lax_encode.cc
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ patch_linux (LIEF::ELF::Binary *bin)
found = false;

{
// 0x235 here is an approximation (we should never have to go past that address)
auto v_func_bytes = bin->get_content_from_virtual_address(offset, 0x235);
// 0x1b8f6 here is an approximation (we should never have to go past that address)
auto v_func_bytes = bin->get_content_from_virtual_address(offset, 0x1b8f6);

uint8_t *data = v_func_bytes.data();
size_t length = v_func_bytes.size();
Expand Down

0 comments on commit 85d5e93

Please sign in to comment.