mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/avf_abitscope: make frame writable before writing to it
This commit is contained in:
parent
2a5a14f3ca
commit
8061098418
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue