From 70ba8e2fa0d77075072bb0ce713c37dc82b8e431 Mon Sep 17 00:00:00 2001 From: Amir Pauker Date: Fri, 21 Jun 2019 07:15:17 -0700 Subject: [PATCH] avcodec/error_resilience: set AVFrame decode_error_flags in case of decoding error Signed-off-by: Amir Pauker Signed-off-by: Michael Niedermayer --- libavcodec/error_resilience.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/error_resilience.c b/libavcodec/error_resilience.c index 35d0c609e5..ca2287198b 100644 --- a/libavcodec/error_resilience.c +++ b/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 */