From f43789b76e661acd93c21664678f140e53cfa1fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Raulet?= Date: Fri, 4 Jul 2014 11:21:55 -0400 Subject: [PATCH] hevc: set the keyframe flag on output frames Signed-off-by: Vittorio Giovara Signed-off-by: Anton Khirnov --- libavcodec/hevc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index 9d7a53add8..d801a47270 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -2503,6 +2503,8 @@ static int hevc_frame_start(HEVCContext *s) goto fail; } + s->ref->frame->key_frame = IS_IRAP(s); + ret = set_side_data(s); if (ret < 0) goto fail;