mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
lavc/hevcdec: Treat clean random access nals as keyframes for -skip_frame.
Fixes ticket #7227. Reviewed-by: Mark Thompson
This commit is contained in:
parent
df3d962d2e
commit
fbb283cfef
@ -2919,7 +2919,7 @@ static int decode_nal_unit(HEVCContext *s, const H2645NAL *nal)
|
||||
if (
|
||||
(s->avctx->skip_frame >= AVDISCARD_BIDIR && s->sh.slice_type == HEVC_SLICE_B) ||
|
||||
(s->avctx->skip_frame >= AVDISCARD_NONINTRA && s->sh.slice_type != HEVC_SLICE_I) ||
|
||||
(s->avctx->skip_frame >= AVDISCARD_NONKEY && !IS_IDR(s))) {
|
||||
(s->avctx->skip_frame >= AVDISCARD_NONKEY && !IS_IRAP(s))) {
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user