avcodec: add option to make is_intra_more_likely() from error concealment return "no"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer
2014-05-02 18:24:22 +02:00
parent a8bc175dd9
commit 81d1fcf37d
5 changed files with 9 additions and 2 deletions

View File

@@ -686,6 +686,9 @@ static int is_intra_more_likely(ERContext *s)
if (!s->last_pic.f || !s->last_pic.f->data[0])
return 1; // no previous frame available -> use spatial prediction
if (s->avctx->error_concealment & FF_EC_FAVOR_INTER)
return 0;
undamaged_count = 0;
for (i = 0; i < s->mb_num; i++) {
const int mb_xy = s->mb_index2xy[i];