diff options
author | Paul B Mahol <onemda@gmail.com> | 2020-01-14 16:24:07 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2020-01-14 16:52:07 +0100 |
commit | 928020b9d01a9bfb3de23a625ed2321a48467bcf (patch) | |
tree | 7c2e89c22da6b233822498c802c09e979b79619b /libavfilter | |
parent | f6f6857c2a81a29c19993195c2cef7e15eda601c (diff) | |
download | ffmpeg-928020b9d01a9bfb3de23a625ed2321a48467bcf.tar.gz |
avfilter/asr_anullsrc: remove pointless frame cloning
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/asrc_anullsrc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libavfilter/asrc_anullsrc.c b/libavfilter/asrc_anullsrc.c index cb676947d8..52db61685d 100644 --- a/libavfilter/asrc_anullsrc.c +++ b/libavfilter/asrc_anullsrc.c @@ -114,11 +114,8 @@ static int request_frame(AVFilterLink *outlink) return AVERROR(ENOMEM); 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)); - av_frame_free(&samplesref); + ret = ff_filter_frame(outlink, samplesref); if (ret < 0) return ret; |