Commit 2a5a14f3 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/avf_aphasemeter: make frame writable before writing to it

parent de07c57d
......@@ -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],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment