Commit 928020b9 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/asr_anullsrc: remove pointless frame cloning

parent f6f6857c
...@@ -114,11 +114,8 @@ static int request_frame(AVFilterLink *outlink) ...@@ -114,11 +114,8 @@ static int request_frame(AVFilterLink *outlink)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
samplesref->pts = null->pts; samplesref->pts = null->pts;
samplesref->channel_layout = null->channel_layout;
samplesref->sample_rate = outlink->sample_rate;
ret = ff_filter_frame(outlink, av_frame_clone(samplesref)); ret = ff_filter_frame(outlink, samplesref);
av_frame_free(&samplesref);
if (ret < 0) if (ret < 0)
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