summaryrefslogtreecommitdiff
path: root/libavfilter/avf_showspectrum.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2023-02-06 14:57:50 +0100
committerPaul B Mahol <onemda@gmail.com>2023-02-12 13:32:00 +0100
commite506ea3ce1de0c782b2b833398240c8e19a02bb4 (patch)
tree09a019d09e096300024c435d15c3485d319bad04 /libavfilter/avf_showspectrum.c
parent78f46065d861eb8487124e92ab46a459426eb89c (diff)
avfilter: use ff_inlink_make_frame_writable()
Diffstat (limited to 'libavfilter/avf_showspectrum.c')
-rw-r--r--libavfilter/avf_showspectrum.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavfilter/avf_showspectrum.c b/libavfilter/avf_showspectrum.c
index 24a424a34a..4ce964706f 100644
--- a/libavfilter/avf_showspectrum.c
+++ b/libavfilter/avf_showspectrum.c
@@ -1441,7 +1441,10 @@ static int plot_spectrum_column(AVFilterLink *inlink, AVFrame *insamples)
}
}
- av_frame_make_writable(s->outpicref);
+ ret = ff_inlink_make_frame_writable(outlink, &s->outpicref);
+ if (ret < 0)
+ return ret;
+ outpicref = s->outpicref;
/* copy to output */
if (s->orientation == VERTICAL) {
if (s->sliding == SCROLL) {