History

avfilter/f_ebur128: make sure frame is writable before writing to it

Paul B Mahol committed 4 years ago

Commit dc8e83b1 parent aede8421 file · +1 −0Browse files

Unified · Split

libavfilter/f_ebur128.c+1−0
@@ -818,6 +818,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples) · 817 unmodified lines
818 y_loudness_lu_graph = lu_to_y(ebur128, loudness_3000 - ebur128->target);818 y_loudness_lu_graph = lu_to_y(ebur128, loudness_3000 - ebur128->target);
819 y_loudness_lu_gauge = lu_to_y(ebur128, gauge_value);819 y_loudness_lu_gauge = lu_to_y(ebur128, gauge_value);
820 820
821 av_frame_make_writable(pic);
821 /* draw the graph using the short-term loudness */822 /* draw the graph using the short-term loudness */
822 p = pic->data[0] + ebur128->graph.y*pic->linesize[0] + ebur128->graph.x*3;823 p = pic->data[0] + ebur128->graph.y*pic->linesize[0] + ebur128->graph.x*3;
823 for (y = 0; y < ebur128->graph.h; y++) {824 for (y = 0; y < ebur128->graph.h; y++) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t