Skip to content

Commit

Permalink
obs-filters: Fix comparison type mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
jpark37 authored and jp9000 committed Jul 6, 2021
1 parent 880eac5 commit 4d9d7b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/obs-filters/noise-suppress-filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ static void *nvafx_initialize(void *data)
if (!ng->handle[0]) {
ng->sample_rate = NVAFX_SAMPLE_RATE;

for (int i = 0; i < ng->channels; i++) {
for (size_t i = 0; i < ng->channels; i++) {
err = NvAFX_CreateEffect(NVAFX_EFFECT_DENOISER,
&ng->handle[i]);
if (err != NVAFX_STATUS_SUCCESS) {
Expand Down Expand Up @@ -397,7 +397,7 @@ static void noise_suppress_update(void *data, obs_data_t *s)
pthread_mutex_lock(&ng->nvafx_mutex);
if (ng->nvafx_initialized) {
int err;
for (int i = 0; i < ng->channels; i++) {
for (size_t i = 0; i < ng->channels; i++) {
err = NvAFX_SetFloat(
ng->handle[i],
NVAFX_PARAM_DENOISER_INTENSITY_RATIO,
Expand Down

0 comments on commit 4d9d7b7

Please sign in to comment.