diff mbox series

[FFmpeg-devel,2/2] avcodec/asvenc: Remove unnecessary emms_c()

Message ID GV1P250MB07371EC08C0BC5390879D0868F5D9@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit e89b85a5e49bbe793c8ab49a11a039444ef92e7f
Headers show
Series [FFmpeg-devel] avcodec/asv: Split ASV1Context into decoder and encoder contexts | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt Oct. 5, 2022, 1:37 a.m. UTC
PixblockDSP does not use MMX functions any more since
92b58002776edd3a3df03c90e8a3ab24b8f987de and FDCTDSP
since d402ec6be99dc82e263bad883e7c1c3d957343db.
BswapDSP never used MMX, so that the emms_c() here
is unnecessary.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/asvenc.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Andreas Rheinhardt Oct. 7, 2022, 10:50 a.m. UTC | #1
Andreas Rheinhardt:
> PixblockDSP does not use MMX functions any more since
> 92b58002776edd3a3df03c90e8a3ab24b8f987de and FDCTDSP
> since d402ec6be99dc82e263bad883e7c1c3d957343db.
> BswapDSP never used MMX, so that the emms_c() here
> is unnecessary.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> ---
>  libavcodec/asvenc.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/libavcodec/asvenc.c b/libavcodec/asvenc.c
> index e185d501b3..9da7cbb986 100644
> --- a/libavcodec/asvenc.c
> +++ b/libavcodec/asvenc.c
> @@ -300,7 +300,6 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
>              encode_mb(a, a->block);
>          }
>      }
> -    emms_c();
>  
>      if (avctx->codec_id == AV_CODEC_ID_ASV1)
>          flush_put_bits(&a->pb);

Will apply tomorrow unless there are objections.

- Andreas
diff mbox series

Patch

diff --git a/libavcodec/asvenc.c b/libavcodec/asvenc.c
index e185d501b3..9da7cbb986 100644
--- a/libavcodec/asvenc.c
+++ b/libavcodec/asvenc.c
@@ -300,7 +300,6 @@  static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
             encode_mb(a, a->block);
         }
     }
-    emms_c();
 
     if (avctx->codec_id == AV_CODEC_ID_ASV1)
         flush_put_bits(&a->pb);