avcodec/error_resilience: set AVFrame decode_error_flags in case of decoding error

Signed-off-by: Amir Pauker <amir@livelyvideo.tv>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/316/head
Amir Pauker 5 years ago committed by Michael Niedermayer
parent f6c572bd89
commit 70ba8e2fa0
  1. 2
      libavcodec/error_resilience.c

@ -1121,6 +1121,8 @@ void ff_er_frame_end(ERContext *s)
av_log(s->avctx, AV_LOG_INFO, "concealing %d DC, %d AC, %d MV errors in %c frame\n",
dc_error, ac_error, mv_error, av_get_picture_type_char(s->cur_pic.f->pict_type));
s->cur_pic.f->decode_error_flags |= FF_DECODE_ERROR_CONCEALMENT_ACTIVE;
is_intra_likely = is_intra_more_likely(s);
/* set unknown mb-type to most likely */

Loading…
Cancel
Save