Index: libswscale/x86/ops_int.asm
--- libswscale/x86/ops_int.asm.orig
+++ libswscale/x86/ops_int.asm
@@ -106,6 +106,7 @@ IF %1 > 3,  mov out3q, [execq + SwsOpExec.out3]
 %endif
 align function_align
 current_function %+ _return:
+    _CET_ENDBR
 
             ; op chain always returns back here
             mov implq, [rsp + 8]
