avfilter/avf_abitscope: make frame writable before writing to it

This commit is contained in:
Paul B Mahol 2022-03-04 13:45:19 +01:00
parent 2a5a14f3ca
commit 8061098418
1 changed files with 1 additions and 0 deletions

View File

@ -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);