]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/error_resilience.c
avcodec/ccaption_dec: Fix typos and cosmetics
[ffmpeg] / libavcodec / error_resilience.c
index c72c562078d0b538435144952fc6b8339ba73914..2a4de4343a0e4ffd202e1bcd995a0dbf0812d734 100644 (file)
@@ -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