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.rheinha...@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 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".