diff options
author | Paul B Mahol <onemda@gmail.com> | 2022-03-04 13:45:19 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2022-03-04 13:54:12 +0100 |
commit | 806109841810da60e41499018090401529040fd8 (patch) | |
tree | 48592ca21b3981aa9c209964700cc254896aec06 /libavfilter | |
parent | 2a5a14f3ca516410ba599edc7ae400fb9286b0d2 (diff) |
avfilter/avf_abitscope: make frame writable before writing to it
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/avf_abitscope.c | 1 |
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); |