diff options
author | Paul B Mahol <onemda@gmail.com> | 2022-03-04 13:41:24 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2022-03-04 13:54:12 +0100 |
commit | 2a5a14f3ca516410ba599edc7ae400fb9286b0d2 (patch) | |
tree | 28f0066ba9725111bc32fd6aecf5d486211dd0b1 /libavfilter/avf_aphasemeter.c | |
parent | de07c57d5ad092c24fca874bd480854d9c07a1d3 (diff) | |
download | ffmpeg-2a5a14f3ca516410ba599edc7ae400fb9286b0d2.tar.gz |
avfilter/avf_aphasemeter: make frame writable before writing to it
Diffstat (limited to 'libavfilter/avf_aphasemeter.c')
-rw-r--r-- | libavfilter/avf_aphasemeter.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/avf_aphasemeter.c b/libavfilter/avf_aphasemeter.c index d9302cf867..852fcc8ef7 100644 --- a/libavfilter/avf_aphasemeter.c +++ b/libavfilter/avf_aphasemeter.c @@ -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], |