lavc/hevcdec: Treat clean random access nals as keyframes for -skip_frame.
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Sun, 27 May 2018 20:51:06 +0000 (22:51 +0200)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Sun, 27 May 2018 20:51:06 +0000 (22:51 +0200)
Fixes ticket #7227.

Reviewed-by: Mark Thompson
libavcodec/hevcdec.c

index c887762..409e77f 100644 (file)
@@ -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;
         }