mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/f_ebur128: fix crash when using vflip filter
This commit is contained in:
parent
4c1a79eb80
commit
e0bc798ce5
|
@ -337,7 +337,8 @@ static int config_video_output(AVFilterLink *outlink)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
/* black background */
|
/* black background */
|
||||||
memset(outpicref->data[0], 0, ebur128->h * outpicref->linesize[0]);
|
for (int y = 0; y < ebur128->h; y++)
|
||||||
|
memset(outpicref->data[0] + y * outpicref->linesize[0], 0, ebur128->w * 3);
|
||||||
|
|
||||||
/* draw LU legends */
|
/* draw LU legends */
|
||||||
drawtext(outpicref, PAD, PAD+16, FONT8, font_colors+3, " LU");
|
drawtext(outpicref, PAD, PAD+16, FONT8, font_colors+3, " LU");
|
||||||
|
|
Loading…
Reference in New Issue