Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2022-03-04 15:33:05 +0300
committerPaul B Mahol <onemda@gmail.com>2022-03-04 15:54:12 +0300
commitdc8e83b4e01cb4e0d3f6fa1d181e0b7d1a89c191 (patch)
tree5bef86755ffe366e48a558dd71863d3daf8127b0 /libavfilter/f_ebur128.c
parentaede8424fed7964d4056a6d1380b4dcac685ac38 (diff)
avfilter/f_ebur128: make sure frame is writable before writing to it
Diffstat (limited to 'libavfilter/f_ebur128.c')
-rw-r--r--libavfilter/f_ebur128.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/f_ebur128.c b/libavfilter/f_ebur128.c
index 35fe9bc6be..1149b2a9cd 100644
--- a/libavfilter/f_ebur128.c
+++ b/libavfilter/f_ebur128.c
@@ -818,6 +818,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
y_loudness_lu_graph = lu_to_y(ebur128, loudness_3000 - ebur128->target);
y_loudness_lu_gauge = lu_to_y(ebur128, gauge_value);
+ av_frame_make_writable(pic);
/* draw the graph using the short-term loudness */
p = pic->data[0] + ebur128->graph.y*pic->linesize[0] + ebur128->graph.x*3;
for (y = 0; y < ebur128->graph.h; y++) {