[FFmpeg-cvslog] lavc/hevcdec: Treat clean random access nals as keyframes for -skip_frame.

Carl Eugen Hoyos git at videolan.org
Sun May 27 23:51:43 EEST 2018


ffmpeg | branch: master | Carl Eugen Hoyos <ceffmpeg at gmail.com> | Sun May 27 22:51:06 2018 +0200| [fbb283cfefb1865375718c4a56ce608d96a4a8ed] | committer: Carl Eugen Hoyos

lavc/hevcdec: Treat clean random access nals as keyframes for -skip_frame.

Fixes ticket #7227.

Reviewed-by: Mark Thompson

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fbb283cfefb1865375718c4a56ce608d96a4a8ed
---

 libavcodec/hevcdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c
index c8877626d2..409e77f3d3 100644
--- a/libavcodec/hevcdec.c
+++ b/libavcodec/hevcdec.c
@@ -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;
         }
 



More information about the ffmpeg-cvslog mailing list