Commit ed02563c authored by Paul B Mahol's avatar Paul B Mahol

avfilter/af_dynaudnorm: do not enqueue flush buffers

parent 12c4d00c
...@@ -686,10 +686,14 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) ...@@ -686,10 +686,14 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
ret = ff_filter_frame(outlink, out); ret = ff_filter_frame(outlink, out);
} }
if (!s->eof) {
av_frame_make_writable(in); av_frame_make_writable(in);
cqueue_enqueue(s->is_enabled, !ctx->is_disabled); cqueue_enqueue(s->is_enabled, !ctx->is_disabled);
analyze_frame(s, in); analyze_frame(s, in);
ff_bufqueue_add(ctx, &s->queue, in); ff_bufqueue_add(ctx, &s->queue, in);
} else {
av_frame_free(&in);
}
return ret; return ret;
} }
......
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