Re: [FFmpeg-devel] [PATCH] libavformat/fitsdec: use correct type for assert

2022-09-20 Thread Johannes Kauffmann
Now with correct formatting. Patch attached. On 21/09/2022 01:22, Johannes Kauffmann wrote: Since avbuf.len is of type unsigned and not int64_t, compare to UINT_MAX instead of INT64_MAX. This fixes the following warning on clang: src/libavformat/fitsdec.c:177:26: warning: result of comparison

[FFmpeg-devel] [PATCH] libavformat/fitsdec: use correct type for assert

2022-09-20 Thread Johannes Kauffmann
Since avbuf.len is of type unsigned and not int64_t, compare to UINT_MAX instead of INT64_MAX. This fixes the following warning on clang: src/libavformat/fitsdec.c:177:26: warning: result of comparison of constant 9223372036854775807 with expression of type 'unsigned int' is always true