[FFmpeg-cvslog] avfilter/asr_anullsrc: remove pointless frame cloning

Paul B Mahol git at videolan.org
Tue Jan 14 17:57:18 EET 2020


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Jan 14 16:24:07 2020 +0100| [928020b9d01a9bfb3de23a625ed2321a48467bcf] | committer: Paul B Mahol

avfilter/asr_anullsrc: remove pointless frame cloning

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=928020b9d01a9bfb3de23a625ed2321a48467bcf
---

 libavfilter/asrc_anullsrc.c | 5 +----
 1 file changed, 1 insertion(+), 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;
 



More information about the ffmpeg-cvslog mailing list