Merge pull request #1402 from admshao/compressor-segfault
obs-filters: Fix segfault in Compressor Filtermaster
commit
a4150c7d98
|
@ -442,6 +442,9 @@ static struct obs_audio_data *compressor_filter_audio(void *data,
|
|||
struct compressor_data *cd = data;
|
||||
|
||||
const uint32_t num_samples = audio->frames;
|
||||
if (num_samples == 0)
|
||||
return audio;
|
||||
|
||||
float **samples = (float**)audio->data;
|
||||
|
||||
pthread_mutex_lock(&cd->sidechain_update_mutex);
|
||||
|
|
Loading…
Reference in New Issue