This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new 35ef294f5d avcodec/x86/vc1dsp_mc: Fix running on x86_32 with realigned 
stack
35ef294f5d is described below

commit 35ef294f5d9d6c5b9a13abb59a4eedb1d0c875a3
Author:     Martin Storsjö <[email protected]>
AuthorDate: Wed Nov 25 14:57:02 2026 +0200
Commit:     Martin Storsjö <[email protected]>
CommitDate: Wed Nov 25 20:18:25 2026 +0000

    avcodec/x86/vc1dsp_mc: Fix running on x86_32 with realigned stack
    
    This fixes running on x86_32 on Windows, built with Clang or
    MSVC, after 928e58c8d3abef8df7dfa782ac687c5f5e905ad5.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
 libavcodec/x86/vc1dsp_mc.asm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/libavcodec/x86/vc1dsp_mc.asm b/libavcodec/x86/vc1dsp_mc.asm
index 0f75a6acb7..373c202e17 100644
--- a/libavcodec/x86/vc1dsp_mc.asm
+++ b/libavcodec/x86/vc1dsp_mc.asm
@@ -471,8 +471,13 @@ put_mspel_ver_%2_%1_ssse3:
     DEFINE_ARGS coeffs, src, stride, rnd1, tmp
 %endif
 %define hd     rnd1d
-; Necessary to ensure that reading memory args works.
+; Necessary to ensure that reading memory args works, after a call which
+; pushed a return address on the stack. If the stack had to be realigned,
+; memory args are accessed relative to the saved stack pointer (rstk)
+; instead of rsp, which is unaffected by the call.
+%ifidn rstk, rsp
 %assign stack_offset stack_offset+gprsize
+%endif
     neg          strideq
     dec             srcq
     movd              m0, rnd1d
@@ -627,7 +632,9 @@ put_mspel_ver_%2_%1_ssse3:
 %endif
     mov               hd, %1
     SPLATW            m0, m0
+%ifidn rstk, rsp
 %assign stack_offset stack_offset-gprsize
+%endif
     ret
 %endmacro
 

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to