From 8b13a4d6f041fc9d9805420e4b567668491a75c7 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 11 Jan 2015 17:00:37 +0100 Subject: avcodec/error_resilience: Remove special case for H.264 from is_intra_more_likely This should not be needed Signed-off-by: Michael Niedermayer --- libavcodec/error_resilience.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'libavcodec/error_resilience.c') diff --git a/libavcodec/error_resilience.c b/libavcodec/error_resilience.c index c72c562078..2a4de4343a 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 -- cgit v1.2.3