mirror of https://git.ffmpeg.org/ffmpeg.git
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 <michael@niedermayer.cc> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
This commit is contained in:
parent
2fdbeb0b8c
commit
ebcf4d354f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue