Commit 925a1b2
committed
obs-ffmpeg: Set needs_compat_ver before struct version checks
Because 4a8e8bb changed the
NVENCAPI_STRUCT_VERSION define to rely on enc->needs_compat_ver, we must
do the conditional check and define needs_compat_ver before any structs
are initialized because they will check the version when doing so by
calling NVENCAPI_STRUCT_VERSION internally.
In this case, make sure that we define enc->needs_compat_ver before
NV_ENCODE_API_FUNCTION_LIST_VER is called for
NV_ENCODE_API_FUNCTION_LIST.
(cherry picked from commit 24470b3)1 parent 0823770 commit 925a1b2
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1105 | 1105 | | |
1106 | 1106 | | |
1107 | 1107 | | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
1108 | 1111 | | |
1109 | 1112 | | |
1110 | 1113 | | |
| |||
1128 | 1131 | | |
1129 | 1132 | | |
1130 | 1133 | | |
1131 | | - | |
1132 | | - | |
1133 | | - | |
1134 | 1134 | | |
1135 | 1135 | | |
1136 | 1136 | | |
| |||
0 commit comments