ffmpeg | branch: master | Paul B Mahol <one...@gmail.com> | Fri Nov 25 19:48:31 
2022 +0100| [e0bc798ce5a19952317c87f6e9e551223e3a0159] | committer: Paul B Mahol

avfilter/f_ebur128: fix crash when using vflip filter

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e0bc798ce5a19952317c87f6e9e551223e3a0159
---

 libavfilter/f_ebur128.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavfilter/f_ebur128.c b/libavfilter/f_ebur128.c
index 298bbaa9d9..8afab37fdb 100644
--- a/libavfilter/f_ebur128.c
+++ b/libavfilter/f_ebur128.c
@@ -337,7 +337,8 @@ static int config_video_output(AVFilterLink *outlink)
         return AVERROR(ENOMEM);
 
     /* 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 */
     drawtext(outpicref, PAD, PAD+16, FONT8, font_colors+3, " LU");

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to