avcodec/h264dec: set AVFrame decode_error_flags in case of decoding error
authorAmir Pauker <amir@livelyvideo.tv>
Fri, 21 Jun 2019 14:15:17 +0000 (07:15 -0700)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 7 Jul 2019 20:34:05 +0000 (22:34 +0200)
commitf6dece864de49d0285615fe97309be9abf8b1670
treefe25ad237737e323f9bf78d5b7c5e8cad5a90334
parent70ba8e2fa0d77075072bb0ce713c37dc82b8e431
avcodec/h264dec: set AVFrame decode_error_flags in case of decoding error

set AVFrame decode_error_flags in case h->slice_ctx->er.error_occurred is set
after the call to ff_h264_execute_decode_slices. This allows the user to detect
concealed decoding errors in the call to avcodec_receive_frame

Signed-off-by: Amir Pauker <amir@livelyvideo.tv>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/h264dec.c