]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/fitsdec: properly initialize header->data_max
authorPaul B Mahol <onemda@gmail.com>
Mon, 8 Feb 2021 16:45:57 +0000 (17:45 +0100)
committerPaul B Mahol <onemda@gmail.com>
Tue, 9 Feb 2021 23:03:38 +0000 (00:03 +0100)
libavcodec/fitsdec.c

index 32a79cdd0d744c1e20d91d50c26a2239abf93cda..802aa5b509b648e58c34b66bcef794f4ae754b78 100644 (file)
@@ -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: \