Re: [FFmpeg-devel] [PATCH] avcodec/svq1enc: Workaround GCC bug 102513

2022-10-25 Thread J. Dekker
On 25 Oct 2022, at 14:48, Andreas Rheinhardt wrote: > GCC 11 has a bug: When it creates clones of recursive functions > (to inline some parameters), it clones a recursive function > eight times by default, even when this exceeds the recursion > depth. This happens with encode_block() in libavcodec

[FFmpeg-devel] [PATCH] avcodec/svq1enc: Workaround GCC bug 102513

2022-10-25 Thread Andreas Rheinhardt
GCC 11 has a bug: When it creates clones of recursive functions (to inline some parameters), it clones a recursive function eight times by default, even when this exceeds the recursion depth. This happens with encode_block() in libavcodec/svq1enc.c where a parameter level is always in the range 0..