From be95df12bb06b183c8d2aea3b0831fdf05466cf3 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 1 Feb 2022 10:15:51 +0100 Subject: lavc/mpeg*: drop the XvMC hwaccel code XvMC was last relevant over 10 years ago, if ever. There is no reason to use it today. --- libavcodec/error_resilience.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'libavcodec/error_resilience.c') diff --git a/libavcodec/error_resilience.c b/libavcodec/error_resilience.c index 551ef914ce..91b7b277a3 100644 --- a/libavcodec/error_resilience.c +++ b/libavcodec/error_resilience.c @@ -736,12 +736,6 @@ static int is_intra_more_likely(ERContext *s) if (undamaged_count < 5) return 0; // almost all MBs damaged -> use temporal prediction - // prevent dsp.sad() check, that requires access to the image - if (CONFIG_XVMC && - s->avctx->hwaccel && s->avctx->hwaccel->decode_mb && - s->cur_pic.f->pict_type == AV_PICTURE_TYPE_I) - return 1; - skip_amount = FFMAX(undamaged_count / 50, 1); // check only up to 50 MBs is_intra_likely = 0; @@ -1229,9 +1223,6 @@ void ff_er_frame_end(ERContext *s) } else guess_mv(s); - /* the filters below manipulate raw image, skip them */ - if (CONFIG_XVMC && s->avctx->hwaccel && s->avctx->hwaccel->decode_mb) - goto ec_clean; /* fill DC for inter blocks */ for (mb_y = 0; mb_y < s->mb_height; mb_y++) { for (mb_x = 0; mb_x < s->mb_width; mb_x++) { -- cgit v1.2.1