[FFmpeg-devel] [PATCH] get_cabac_inline_x86: Don't inline if 32-bit Windows

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Tue Jan 3 12:15:38 EET 2023


Christopher Degawa:
> previouslly, it only was an issue with 32-bit clang from msys2's
> mingw32 repo, however, at some point with an update to gcc 12.2.0,
> the same issue popped up. Tested with a clean clone of ffmpeg, and even
> tested with n5.0, but the issue persists, so I presume it's a compiler
> issue.
> 
> Related: https://trac.ffmpeg.org/ticket/8903
> 
> Signed-off-by: Christopher Degawa <ccom at randomderp.com>
> ---
>  libavcodec/x86/cabac.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavcodec/x86/cabac.h b/libavcodec/x86/cabac.h
> index b046a56a6b..70f990db8d 100644
> --- a/libavcodec/x86/cabac.h
> +++ b/libavcodec/x86/cabac.h
> @@ -178,7 +178,7 @@
>  #if HAVE_7REGS && !BROKEN_COMPILER
>  #define get_cabac_inline get_cabac_inline_x86
>  static
> -#if defined(_WIN32) && !defined(_WIN64) && defined(__clang__)
> +#if defined(_WIN32) && !defined(_WIN64)
>  av_noinline
>  #else
>  av_always_inline

Have these presumed compiler bugs ever been reported upstream?

- Andreas



More information about the ffmpeg-devel mailing list