avfilter/vf_xfade: fix fadegrays for gbrp* formats

The array elements were left uninitialized.
This commit is contained in:
Paul B Mahol 2023-05-22 09:06:22 +02:00
parent 6284afec07
commit 7428f1e8f2
1 changed files with 1 additions and 0 deletions

View File

@ -1406,6 +1406,7 @@ static void fadegrays##name##_transition(AVFilterContext *ctx,
for (int x = 0; x < width; x++) { \ for (int x = 0; x < width; x++) { \
int bg[2][4]; \ int bg[2][4]; \
if (is_rgb) { \ if (is_rgb) { \
bg[0][0] = bg[1][0] = 0; \
for (int p = 0; p < s->nb_planes; p++) { \ for (int p = 0; p < s->nb_planes; p++) { \
const type *xf0 = (const type *)(a->data[p] + \ const type *xf0 = (const type *)(a->data[p] + \
y * a->linesize[p]); \ y * a->linesize[p]); \