summaryrefslogtreecommitdiff
path: root/libavcodec/error_resilience.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-02-01 10:15:51 +0100
committerAnton Khirnov <anton@khirnov.net>2022-02-15 10:16:15 +0100
commitbe95df12bb06b183c8d2aea3b0831fdf05466cf3 (patch)
tree496462d3c96b633759bd863bfc9221b408395a91 /libavcodec/error_resilience.c
parenta67734596dca097584965916e0ba90e81af3163c (diff)
downloadffmpeg-be95df12bb06b183c8d2aea3b0831fdf05466cf3.tar.gz
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.
Diffstat (limited to 'libavcodec/error_resilience.c')
-rw-r--r--libavcodec/error_resilience.c9
1 files changed, 0 insertions, 9 deletions
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++) {