mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-12-04 17:46:45 +00:00
avcodec/h264_slice: Also check sei_recovery_frame_cnt for skip_frame nokey
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
accc91642b
commit
c3fdf536f6
@ -1217,7 +1217,7 @@ int ff_h264_decode_slice_header(H264Context *h, H264SliceContext *sl)
|
||||
(h->avctx->skip_frame >= AVDISCARD_NONREF && !h->nal_ref_idc) ||
|
||||
(h->avctx->skip_frame >= AVDISCARD_BIDIR && sl->slice_type_nos == AV_PICTURE_TYPE_B) ||
|
||||
(h->avctx->skip_frame >= AVDISCARD_NONINTRA && sl->slice_type_nos != AV_PICTURE_TYPE_I) ||
|
||||
(h->avctx->skip_frame >= AVDISCARD_NONKEY && h->nal_unit_type != NAL_IDR_SLICE) ||
|
||||
(h->avctx->skip_frame >= AVDISCARD_NONKEY && h->nal_unit_type != NAL_IDR_SLICE && h->sei_recovery_frame_cnt < 0) ||
|
||||
h->avctx->skip_frame >= AVDISCARD_ALL) {
|
||||
return SLICE_SKIPED;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user