mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-18 21:30:55 +00:00
avfilter/af_dynaudnorm: do not enqueue flush buffers
This commit is contained in:
parent
12c4d00c10
commit
ed02563ce0
@ -686,10 +686,14 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
|
||||
ret = ff_filter_frame(outlink, out);
|
||||
}
|
||||
|
||||
av_frame_make_writable(in);
|
||||
cqueue_enqueue(s->is_enabled, !ctx->is_disabled);
|
||||
analyze_frame(s, in);
|
||||
ff_bufqueue_add(ctx, &s->queue, in);
|
||||
if (!s->eof) {
|
||||
av_frame_make_writable(in);
|
||||
cqueue_enqueue(s->is_enabled, !ctx->is_disabled);
|
||||
analyze_frame(s, in);
|
||||
ff_bufqueue_add(ctx, &s->queue, in);
|
||||
} else {
|
||||
av_frame_free(&in);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user