[FFmpeg-cvslog] avcodec/fitsdec: properly initialize header->data_max
Paul B Mahol
git at videolan.org
Wed Feb 10 01:08:56 EET 2021
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Feb 8 17:45:57 2021 +0100| [4aef642cfdd0cb9a351709a5f57fd48a4d587c9f] | committer: Paul B Mahol
avcodec/fitsdec: properly initialize header->data_max
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4aef642cfdd0cb9a351709a5f57fd48a4d587c9f
---
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: \
More information about the ffmpeg-cvslog
mailing list