avfilter/avf_ahistogram: make frame writable before writing to it

release/5.1
Paul B Mahol 3 years ago
parent faac31cc86
commit de07c57d5a
  1. 1
      libavfilter/avf_ahistogram.c

@ -181,6 +181,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
}
}
av_frame_make_writable(s->out);
if (s->dmode == SEPARATE) {
for (y = 0; y < w; y++) {
s->combine_buffer[3 * y ] = 0;

Loading…
Cancel
Save