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:
parent
f6f6857c2a
commit
928020b9d0
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user