mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
avfilter/avf_aphasemeter: make frame writable before writing to it
This commit is contained in:
parent
de07c57d5a
commit
2a5a14f3ca
@ -266,6 +266,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
|
||||
memset(out->data[0] + i * out->linesize[0], 0, outlink->w * 4);
|
||||
} else if (s->do_video) {
|
||||
out = s->out;
|
||||
av_frame_make_writable(s->out);
|
||||
for (i = outlink->h - 1; i >= 10; i--)
|
||||
memmove(out->data[0] + (i ) * out->linesize[0],
|
||||
out->data[0] + (i-1) * out->linesize[0],
|
||||
|
Loading…
x
Reference in New Issue
Block a user