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

avfilter/af_anequalizer: check if frame clone is set

parent 80c4c336
......@@ -733,13 +733,18 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
}
if (s->draw_curves) {
AVFrame *clone;
const int64_t pts = buf->pts +
av_rescale_q(buf->nb_samples, (AVRational){ 1, inlink->sample_rate },
outlink->time_base);
int ret;
s->video->pts = pts;
ret = ff_filter_frame(ctx->outputs[1], av_frame_clone(s->video));
clone = av_frame_clone(s->video);
if (!clone)
return AVERROR(ENOMEM);
ret = ff_filter_frame(ctx->outputs[1], clone);
if (ret < 0)
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