From 84357c09eff91397a9429fe0a29c105d1a278557 Mon Sep 17 00:00:00 2001 From: James Almer Date: Mon, 15 Sep 2025 22:18:52 -0300 Subject: [PATCH] avcodec/x86/pngdsp: add missing emms at the end of add_png_paeth_prediction Fixes unpredictable behavior with floats. Signed-off-by: James Almer (cherry picked from commit 57a29f2e7dd2374a1df27316c6cf7c0225e86758) --- libavcodec/x86/pngdsp.asm | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/x86/pngdsp.asm b/libavcodec/x86/pngdsp.asm index 50e4255dec..726e6bc712 100644 --- a/libavcodec/x86/pngdsp.asm +++ b/libavcodec/x86/pngdsp.asm @@ -163,6 +163,7 @@ cglobal add_png_paeth_prediction, 5, 7, %1, dst, src, top, w, bpp, end, cntr dec cntrq jge .bpp_loop POP dstq + emms RET %endmacro