Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
ffmpeg, 32-bit clang test
From 310f489fd044894c0678f55ecef62348ed4aca15 Mon Sep 17 00:00:00 2001
From: Christopher Degawa <>
Date: Mon, 21 Sep 2020 15:16:32 +0000
Subject: [PATCH] get_cabac_inline_x86: Don't inline if 32-bit clang on windows
Signed-off-by: Christopher Degawa <>
libavcodec/x86/cabac.h | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/libavcodec/x86/cabac.h b/libavcodec/x86/cabac.h
index cfd3b759c9..db27b1e720 100644
--- a/libavcodec/x86/cabac.h
+++ b/libavcodec/x86/cabac.h
@@ -175,8 +175,13 @@
#define get_cabac_inline get_cabac_inline_x86
-static av_always_inline int get_cabac_inline_x86(CABACContext *c,
- uint8_t *const state)
+#if defined(_WIN32) && !defined(_WIN64) && defined(__clang__)
+int get_cabac_inline_x86(CABACContext *c, uint8_t *const state)
int bit, tmp;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment