Commit 888b7731b6 for ffmpeg
commit 888b7731b6bac25a7c5968053e90573367269077
Author: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Date: Fri Nov 6 00:26:13 2026 +0100
avcodec/avcodec: Remove emms_c from avcodec_default_execute() funcs
Fixing mmx issues by clearing the FPU state in these callbacks
was always a bad design, as it does not fix issues when these
callbacks are overridden (either by the user or our slice-threading
code). Anyway, we got rid of so many mmx functions that these emms
here are obsolete (the remaining codecs still using mmx are guaranteed
not to call these functions).
Reviewed-by: Lynne <dev@lynne.ee>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
diff --git a/libavcodec/avcodec.c b/libavcodec/avcodec.c
index 80f2598a92..4b2018d75f 100644
--- a/libavcodec/avcodec.c
+++ b/libavcodec/avcodec.c
@@ -31,7 +31,6 @@
#include "libavutil/bprint.h"
#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
-#include "libavutil/emms.h"
#include "libavutil/imgutils.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
@@ -81,7 +80,6 @@ int avcodec_default_execute(AVCodecContext *c, int (*func)(AVCodecContext *c2, v
if (ret)
ret[i] = r;
}
- emms_c();
return 0;
}
@@ -94,7 +92,6 @@ int avcodec_default_execute2(AVCodecContext *c, int (*func)(AVCodecContext *c2,
if (ret)
ret[i] = r;
}
- emms_c();
return 0;
}