Message ID | 20210208180416.14669-1-onemda@gmail.com |
---|---|
State | Accepted |
Commit | 4aef642cfdd0cb9a351709a5f57fd48a4d587c9f |
Headers | show |
Series | [FFmpeg-devel,1/2] avcodec/fitsdec: properly initialize header->data_max | expand |
Context | Check | Description |
---|---|---|
andriy/x86_make | success | Make finished |
andriy/x86_make_fate | success | Make fate finished |
andriy/PPC64_make | success | Make finished |
andriy/PPC64_make_fate | success | Make fate finished |
On Mon, Feb 08, 2021 at 07:04:15PM +0100, Paul B Mahol wrote: > Signed-off-by: Paul B Mahol <onemda@gmail.com> > --- > libavcodec/fitsdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) probably ok thx [...]
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: \
Signed-off-by: Paul B Mahol <onemda@gmail.com> --- libavcodec/fitsdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)