diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 323d1916a0..274c738c5d 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -4547,8 +4547,9 @@ static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size, continue; } - // FIXME do not discard SEI id - if (avctx->skip_frame >= AVDISCARD_NONREF && h->nal_ref_idc == 0) + if (avctx->skip_frame >= AVDISCARD_NONREF && + h->nal_ref_idc == 0 && + h->nal_unit_type != NAL_SEI) continue; again: