aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-01-14 16:24:07 +0100
committerPaul B Mahol <onemda@gmail.com>2020-01-14 16:52:07 +0100
commit928020b9d01a9bfb3de23a625ed2321a48467bcf (patch)
tree7c2e89c22da6b233822498c802c09e979b79619b /libavfilter
parentf6f6857c2a81a29c19993195c2cef7e15eda601c (diff)
downloadffmpeg-928020b9d01a9bfb3de23a625ed2321a48467bcf.tar.gz
avfilter/asr_anullsrc: remove pointless frame cloning
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/asrc_anullsrc.c5
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;