[FFmpeg-cvslog] avcodec/exr: initialize axmax and bxmin to 0

Paul B Mahol git at videolan.org
Sat Sep 12 11:11:10 EEST 2020


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Sep 12 10:06:35 2020 +0200| [a406dde1d21b9f253f996e94a2fd2045898f9c37] | committer: Paul B Mahol

avcodec/exr: initialize axmax and bxmin to 0

They can be used uninitialized.

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

 libavcodec/exr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;



More information about the ffmpeg-cvslog mailing list