[FFmpeg-cvslog] avfilter/vf_xfade: fix fadegrays for gbrp* formats

Paul B Mahol git at videolan.org
Mon May 22 10:02:54 EEST 2023


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon May 22 09:06:22 2023 +0200| [7428f1e8f2d1ed2d43edbb240d776a39ea205512] | committer: Paul B Mahol

avfilter/vf_xfade: fix fadegrays for gbrp* formats

The array elements were left uninitialized.

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

 libavfilter/vf_xfade.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/vf_xfade.c b/libavfilter/vf_xfade.c
index f52da5570b..a0e2e61d40 100644
--- a/libavfilter/vf_xfade.c
+++ b/libavfilter/vf_xfade.c
@@ -1406,6 +1406,7 @@ static void fadegrays##name##_transition(AVFilterContext *ctx,
         for (int x = 0; x < width; x++) {                                            \
             int bg[2][4];                                                            \
             if (is_rgb) {                                                            \
+                bg[0][0] = bg[1][0] = 0;                                             \
                 for (int p = 0; p < s->nb_planes; p++) {                             \
                     const type *xf0 = (const type *)(a->data[p] +                    \
                                                      y * a->linesize[p]);            \



More information about the ffmpeg-cvslog mailing list