Re: [FFmpeg-devel] [PATCH 1/2] avutil/video_enc_params: Combine overflow checks

2021-02-18 Thread Andreas Rheinhardt
Andreas Rheinhardt: > This patch also fixes a -Wtautological-constant-out-of-range-compare > warning from Clang and a -Wtype-limits warning from GCC on systems > where size_t is 64bits and unsigned 32bits. The reason for this seems > to be that variable (whose value derives from sizeof() and can th

[FFmpeg-devel] [PATCH 1/2] avutil/video_enc_params: Combine overflow checks

2021-02-14 Thread Andreas Rheinhardt
This patch also fixes a -Wtautological-constant-out-of-range-compare warning from Clang and a -Wtype-limits warning from GCC on systems where size_t is 64bits and unsigned 32bits. The reason for this seems to be that variable (whose value derives from sizeof() and can therefore be known at compile-