mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-13 10:30:05 +01:00
avfilter/af_anlmdn: try to recover when cache becomes negative
This commit is contained in:
@@ -224,7 +224,10 @@ static int filter_channel(AVFilterContext *ctx, void *arg, int ch, int nb_jobs)
|
|||||||
unsigned weight_lut_idx;
|
unsigned weight_lut_idx;
|
||||||
float w;
|
float w;
|
||||||
|
|
||||||
av_assert2(distance >= 0.f);
|
if (distance < 0.f) {
|
||||||
|
cache[j] = 0.f;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
w = distance * sw;
|
w = distance * sw;
|
||||||
if (w >= smooth)
|
if (w >= smooth)
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user