From: James Almer Date: Tue, 16 Sep 2025 01:18:52 +0000 (-0300) Subject: avcodec/x86/pngdsp: add missing emms at the end of add_png_paeth_prediction X-Git-Url: http://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff_plain/refs/heads/release/4.3 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) --- 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