[FFmpeg-devel] [PATCH] fixed_dsp: add missing av_restrict qualifiers

2022-09-24 Thread Johannes Kauffmann
The butterflies_fixed function pointer declaration specifies av_restrict for the first two pointer arguments. So the corresponding function definitions should honor this declaration. MSVC emits warning C4113 for this. --- libavutil/fixed_dsp.c | 2 +- libavutil/x86/fixed_dsp_init.c | 2 +

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 [-Wtauto