You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avfilter/f_ebur128: make sure frame is writable before writing to it
This commit is contained in:
@@ -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_graph = lu_to_y(ebur128, loudness_3000 - ebur128->target);
|
||||||
y_loudness_lu_gauge = lu_to_y(ebur128, gauge_value);
|
y_loudness_lu_gauge = lu_to_y(ebur128, gauge_value);
|
||||||
|
|
||||||
|
av_frame_make_writable(pic);
|
||||||
/* draw the graph using the short-term loudness */
|
/* draw the graph using the short-term loudness */
|
||||||
p = pic->data[0] + ebur128->graph.y*pic->linesize[0] + ebur128->graph.x*3;
|
p = pic->data[0] + ebur128->graph.y*pic->linesize[0] + ebur128->graph.x*3;
|
||||||
for (y = 0; y < ebur128->graph.h; y++) {
|
for (y = 0; y < ebur128->graph.h; y++) {
|
||||||
|
Reference in New Issue
Block a user