ffmpeg gets into infinite loop with some audio chain
Summary of the bug:
If you have a short audio and try to get only the non silent parts then amplify the non silent part, it just hangs. If the duration is 1.5 seconds for example, it works just fine.
How to reproduce:
% ffmpeg -f lavfi -i "sine=frequency=1000:duration=0.5" -y test.wav ; ffmpeg -i test.wav -af 'silenceremove=stop_periods=-1:stop_duration=0.5:stop_threshold=-70dB,loudnorm,dynaudnorm=g=3:f=200' -y b.flac
ffmpeg version N-56320-ge937457b7b-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.
Regression since d7fead80ad994243b35bf4d43324f3fa72c11e9d