Redundant condition: '!A || B' is equivalent to '!A || (A && B)' but more clearly.
Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -67,7 +67,7 @@ static int activate(AVFilterContext *ctx) · 66 unmodified lines | ||
| 67 | 67 | return ret; |
| 68 | 68 | |
| 69 | 69 | if (ret > 0) { |
| 70 | − if ((!s->pad || (s->pad && frame->nb_samples == s->nb_out_samples))) { | |
| 70 | + if (!s->pad || frame->nb_samples == s->nb_out_samples) { | |
| 71 | 71 | ret = ff_filter_frame(outlink, frame); |
| 72 | 72 | if (ff_inlink_queued_samples(inlink) >= s->nb_out_samples) |
| 73 | 73 | ff_filter_set_ready(ctx, 100); |