From ebcf4d354f5cd1ade20ebfe186527488990b1d7b Mon Sep 17 00:00:00 2001 From: Jun Zhao Date: Sun, 16 Jun 2019 00:22:05 +0800 Subject: [PATCH] lavfi/af_asetnsamples: Remove the redundant condition check Redundant condition: '!A || B' is equivalent to '!A || (A && B)' but more clearly. Reviewed-by: Michael Niedermayer Signed-off-by: Jun Zhao --- libavfilter/af_asetnsamples.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/af_asetnsamples.c b/libavfilter/af_asetnsamples.c index a7e424f241..bbc391a4ff 100644 --- a/libavfilter/af_asetnsamples.c +++ b/libavfilter/af_asetnsamples.c @@ -67,7 +67,7 @@ static int activate(AVFilterContext *ctx) return ret; if (ret > 0) { - if ((!s->pad || (s->pad && frame->nb_samples == s->nb_out_samples))) { + if (!s->pad || frame->nb_samples == s->nb_out_samples) { ret = ff_filter_frame(outlink, frame); if (ff_inlink_queued_samples(inlink) >= s->nb_out_samples) ff_filter_set_ready(ctx, 100);