summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavfilter/avf_abitscope.c1
1 files changed, 1 insertions, 0 deletions
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);