summaryrefslogtreecommitdiff
path: root/libavcodec/exr.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-09-12 10:06:35 +0200
committerPaul B Mahol <onemda@gmail.com>2020-09-12 10:09:18 +0200
commita406dde1d21b9f253f996e94a2fd2045898f9c37 (patch)
tree42c996274364bacded3607d245a64feeead584c6 /libavcodec/exr.c
parent1c094563fe93cfe0e8b5632efa7b2c6c26b3f205 (diff)
avcodec/exr: initialize axmax and bxmin to 0
They can be used uninitialized.
Diffstat (limited to 'libavcodec/exr.c')
-rw-r--r--libavcodec/exr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index d5f12cb22a..829d38143d 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;