From 4aef642cfdd0cb9a351709a5f57fd48a4d587c9f Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Mon, 8 Feb 2021 17:45:57 +0100 Subject: [PATCH] avcodec/fitsdec: properly initialize header->data_max --- libavcodec/fitsdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/fitsdec.c b/libavcodec/fitsdec.c index 32a79cdd0d..802aa5b509 100644 --- a/libavcodec/fitsdec.c +++ b/libavcodec/fitsdec.c @@ -63,7 +63,7 @@ static int fill_data_min_max(const uint8_t *ptr8, FITSHeader *header, const uint int i, j; header->data_min = DBL_MAX; - header->data_max = DBL_MIN; + header->data_max = -DBL_MAX; switch (header->bitpix) { #define CASE_N(a, t, rd) \ case a: \