X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Ferror_resilience.c;h=2a4de4343a0e4ffd202e1bcd995a0dbf0812d734;hb=4f664d8aae8ccca33f39c2515484bd03e9d3f80d;hp=c72c562078d0b538435144952fc6b8339ba73914;hpb=dd4de4a987f33cb33c9f4aae59e70522ed0982e2;p=ffmpeg diff --git a/libavcodec/error_resilience.c b/libavcodec/error_resilience.c index c72c562078d..2a4de4343a0 100644 --- a/libavcodec/error_resilience.c +++ b/libavcodec/error_resilience.c @@ -697,9 +697,6 @@ static int is_intra_more_likely(ERContext *s) undamaged_count++; } - if (s->avctx->codec_id == AV_CODEC_ID_H264 && s->ref_count <= 0) - return 1; - if (undamaged_count < 5) return 0; // almost all MBs damaged -> use temporal prediction