Commit 2bf30aa328 for ffmpeg
commit 2bf30aa328095f09b47ef8ad3c4375d3a335c655
Author: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Date: Thu Nov 5 13:25:15 2026 +0100
avcodec/snowenc: Remove obsolete emms_c
Unnecessary since 57f9d96cacd2dd62fe8c126b840ff2d0676f383b;
notice that only the Snow decoder uses the SnowDWTContext
functions that are still partially mmx.
Reviewed-by: Lynne <dev@lynne.ee>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c
index 13ca651fcd..c7a6c7c63d 100644
--- a/libavcodec/snowenc.c
+++ b/libavcodec/snowenc.c
@@ -20,7 +20,6 @@
#include <math.h>
-#include "libavutil/emms.h"
#include "libavutil/intmath.h"
#include "libavutil/log.h"
#include "libavutil/mem.h"
@@ -1714,7 +1713,6 @@ static int ratecontrol_1pass(SnowEncContext *enc, AVFrame *pict)
coef_sum+= abs(buf[x+y*stride]) * qdiv >> 16;
}
}
- emms_c();
/* ugly, ratecontrol just takes a sqrt again */
av_assert0(coef_sum < INT_MAX);
@@ -1958,7 +1956,6 @@ redo_frame:
pic->pict_type= AV_PICTURE_TYPE_I;
s->keyframe=1;
s->current_picture->flags |= AV_FRAME_FLAG_KEY;
- emms_c();
goto redo_frame;
}
@@ -2053,7 +2050,6 @@ redo_frame:
}
}
- emms_c();
update_last_header_values(s);