diff mbox series

[FFmpeg-devel,5/9] avcodec/asvdec: Remove unnecessary emms_c()

Message ID GV1P250MB0737EAF421210D0DD3E1182B8F5C9@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit ebcaa24274c4f67393710d2d40bd75b4e2f7f8e2
Headers show
Series None | expand

Commit Message

Andreas Rheinhardt Oct. 6, 2022, 12:57 a.m. UTC
This codec uses BswapDSP, BlockDSP and IDCTDSP.
The former never used MMX, the latter does not use it
for idct_put since bfb28b5ce89f3e950214b67ea95b45e3355c2caf
and BlockDSP does not use it since commit
ee551a21ddcbf81afe183d9489c534ee80f263a0.
Therefore this emms_c() is can be removed.

(It was actually always redundant, because its caller
(decode_simple_internal()) calls emms_c() itself afterwards.)

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/asvdec.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/asvdec.c b/libavcodec/asvdec.c
index 7dafc115b3..be89544732 100644
--- a/libavcodec/asvdec.c
+++ b/libavcodec/asvdec.c
@@ -293,8 +293,6 @@  static int decode_frame(AVCodecContext *avctx, AVFrame *p,
 
     *got_frame = 1;
 
-    emms_c();
-
     return (get_bits_count(&a->gb) + 31) / 32 * 4;
 }