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>
pull/101/merge
Michael Niedermayer 10 years ago
parent 855463c007
commit 8b13a4d6f0
  1. 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

Loading…
Cancel
Save