From ebcaa24274c4f67393710d2d40bd75b4e2f7f8e2 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Wed, 5 Oct 2022 19:51:13 +0200 Subject: [PATCH] avcodec/asvdec: Remove unnecessary emms_c() 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 --- libavcodec/asvdec.c | 2 -- 1 file changed, 2 deletions(-) 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; }