Browse Source

avcodec/error_resilience: Remove special case for H.264 from is_intra_more_likely

This should not be needed

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer 10 years ago
parent
commit
8b13a4d6f0
1 changed files with 0 additions and 3 deletions
  1. 0 3
      libavcodec/error_resilience.c

+ 0 - 3
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