[FFmpeg-cvslog] avcodec/error_resilience: set AVFrame decode_error_flags in case of decoding error
Amir Pauker
git at videolan.org
Sun Jul 7 23:40:00 EEST 2019
ffmpeg | branch: master | Amir Pauker <amir at livelyvideo.tv> | Fri Jun 21 07:15:17 2019 -0700| [70ba8e2fa0d77075072bb0ce713c37dc82b8e431] | committer: Michael Niedermayer
avcodec/error_resilience: set AVFrame decode_error_flags in case of decoding error
Signed-off-by: Amir Pauker <amir at livelyvideo.tv>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=70ba8e2fa0d77075072bb0ce713c37dc82b8e431
---
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 */
More information about the ffmpeg-cvslog
mailing list