[FFmpeg-devel] [PATCH 25/28] avcodec/x86/mpegvideoencdsp_init: Remove bits_per_raw_sample check

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Tue May 7 00:52:24 EEST 2024


This check has been added in 19a0729b4cfacfd90b8ee84ab0c093ff7e397e65;
this commit added high bit-depth versions of draw_edges
and added the check to indicate that the mmx version only
supports eight bits.
Yet there is no high bit depth draw_edges function any more
since d4d186d185df98492d8935a87c5b5cf369db9748; since then,
the mmx version and the C version always behave the same,
yet said check has not been removed. This commit does so.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
 libavcodec/x86/mpegvideoencdsp_init.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libavcodec/x86/mpegvideoencdsp_init.c b/libavcodec/x86/mpegvideoencdsp_init.c
index ec174b15aa..9fa7ee4824 100644
--- a/libavcodec/x86/mpegvideoencdsp_init.c
+++ b/libavcodec/x86/mpegvideoencdsp_init.c
@@ -233,9 +233,7 @@ av_cold void ff_mpegvideoencdsp_init_x86(MpegvideoEncDSPContext *c,
         }
         c->add_8x8basis = add_8x8basis_mmx;
 
-        if (avctx->bits_per_raw_sample <= 8) {
-            c->draw_edges = draw_edges_mmx;
-        }
+        c->draw_edges = draw_edges_mmx;
     }
 
     if (INLINE_AMD3DNOW(cpu_flags)) {
-- 
2.40.1



More information about the ffmpeg-devel mailing list