From a406dde1d21b9f253f996e94a2fd2045898f9c37 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sat, 12 Sep 2020 10:06:35 +0200 Subject: [PATCH] avcodec/exr: initialize axmax and bxmin to 0 They can be used uninitialized. --- libavcodec/exr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/exr.c b/libavcodec/exr.c index d5f12cb22a2..829d38143d8 100644 --- a/libavcodec/exr.c +++ b/libavcodec/exr.c @@ -999,7 +999,7 @@ static int decode_block(AVCodecContext *avctx, void *tdata, uint64_t tile_x, tile_y, tile_level_x, tile_level_y; const uint8_t *src; int step = s->desc->flags & AV_PIX_FMT_FLAG_FLOAT ? 4 : 2 * s->desc->nb_components; - int bxmin, axmax, window_xoffset = 0; + int bxmin = 0, axmax = 0, window_xoffset = 0; int window_xmin, window_xmax, window_ymin, window_ymax; int data_xoffset, data_yoffset, data_window_offset, xsize, ysize; int i, x, buf_size = s->buf_size; -- 2.39.5