mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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>
This commit is contained in:
parent
f6c572bd89
commit
70ba8e2fa0
@ -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",
|
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));
|
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);
|
is_intra_likely = is_intra_more_likely(s);
|
||||||
|
|
||||||
/* set unknown mb-type to most likely */
|
/* set unknown mb-type to most likely */
|
||||||
|
Loading…
Reference in New Issue
Block a user