Commit ebcf4d35 authored by Jun Zhao's avatar Jun Zhao

lavfi/af_asetnsamples: Remove the redundant condition check

Redundant condition: '!A || B' is equivalent to '!A || (A && B)' but
more clearly.
Reviewed-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: 's avatarJun Zhao <barryjzhao@tencent.com>
parent 2fdbeb0b
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment