obs-ffmpeg: Use NV_FAILED() instead of FAILED()
The FAILED() macro is for HRESULT values; NV_FAILED() is what should be used for NVENCSTATUS.
This commit is contained in:
@@ -243,7 +243,8 @@ static bool nvenc_update(void *data, obs_data_t *settings)
|
||||
params.resetEncoder = 1;
|
||||
params.forceIDR = 1;
|
||||
|
||||
if (FAILED(nv.nvEncReconfigureEncoder(enc->session, ¶ms))) {
|
||||
if (NV_FAILED(nv.nvEncReconfigureEncoder(enc->session,
|
||||
¶ms))) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user