History

avfilter/af_afftdn: unbreak custom band noise option processing

Paul B Mahol committed 4 years ago

Commit 4a96baa1 parent 098528e1 file · +4 −2Browse files

Unified · Split

libavfilter/af_afftdn.c+4−2
@@ -564,18 +564,20 @@ static void read_custom_noise(AudioFFTDeNoiseContext *s, int ch) · 563 unmodified lines
564564 return;
565565
566566 for (int i = 0; i < NB_PROFILE_BANDS; i++) {
567+ float noise;
568+
567569 if (!(arg = av_strtok(p, "| ", &saveptr)))
568570 break;
569571
570572 p = NULL;
571573
572− ret = av_sscanf(arg, "%f", &band_noise[i]);
574+ ret = av_sscanf(arg, "%f", &noise);
573575 if (ret != 1) {
574576 av_log(s, AV_LOG_ERROR, "Custom band noise must be float.\n");
575577 break;
576578 }
577579
578− band_noise[i] = av_clipd(band_noise[i], -24., 24.);
580+ band_noise[i] = av_clipd(noise, -24., 24.);
579581 }
580582
581583 av_free(custom_noise_str);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t