[FFmpeg-devel] [PATCH 1/2] avcodec/fitsdec: properly initialize header->data_max
Paul B Mahol
onemda at gmail.com
Mon Feb 8 20:04:15 EET 2021
Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
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: \
--
2.17.1
More information about the ffmpeg-devel
mailing list