ffmpeg | branch: master | Paul B Mahol <one...@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;

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to