From 806109841810da60e41499018090401529040fd8 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Fri, 4 Mar 2022 13:45:19 +0100 Subject: [PATCH] avfilter/avf_abitscope: make frame writable before writing to it --- libavfilter/avf_abitscope.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/avf_abitscope.c b/libavfilter/avf_abitscope.c index 982bcc6e61..e6415ddfbf 100644 --- a/libavfilter/avf_abitscope.c +++ b/libavfilter/avf_abitscope.c @@ -227,6 +227,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples) } if (s->mode == 1) { + av_frame_make_writable(s->outpicref); outpicref = av_frame_clone(s->outpicref); if (!outpicref) return AVERROR(ENOMEM);