1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter/avf_ahistogram: make frame writable before writing to it

This commit is contained in:
Paul B Mahol 2022-03-04 13:39:08 +01:00
parent faac31cc86
commit de07c57d5a

View File

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