[FFmpeg-cvslog] avfilter/avf_ahistogram: make frame writable before writing to it
Paul B Mahol
git at videolan.org
Fri Mar 4 15:07:00 EET 2022
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Mar 4 13:39:08 2022 +0100| [de07c57d5ad092c24fca874bd480854d9c07a1d3] | committer: Paul B Mahol
avfilter/avf_ahistogram: make frame writable before writing to it
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=de07c57d5ad092c24fca874bd480854d9c07a1d3
---
libavfilter/avf_ahistogram.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavfilter/avf_ahistogram.c b/libavfilter/avf_ahistogram.c
index 258b062873..7ae5dd180a 100644
--- a/libavfilter/avf_ahistogram.c
+++ b/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;
More information about the ffmpeg-cvslog
mailing list