1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter/asr_anullsrc: remove pointless frame cloning

This commit is contained in:
Paul B Mahol 2020-01-14 16:24:07 +01:00
parent f6f6857c2a
commit 928020b9d0

View File

@ -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;