1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter/af_anlmdn: try to recover when cache becomes negative

This commit is contained in:
Paul B Mahol 2019-06-02 12:58:07 +02:00
parent b535577465
commit 1a266a1ef9

View File

@ -224,7 +224,10 @@ static int filter_channel(AVFilterContext *ctx, void *arg, int ch, int nb_jobs)
unsigned weight_lut_idx;
float w;
av_assert2(distance >= 0.f);
if (distance < 0.f) {
cache[j] = 0.f;
continue;
}
w = distance * sw;
if (w >= smooth)
continue;