aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/hevc.c
diff options
context:
space:
mode:
authorMickaƫl Raulet <mraulet@insa-rennes.fr>2014-07-04 11:21:55 -0400
committerAnton Khirnov <anton@khirnov.net>2014-07-11 08:43:01 +0000
commitf43789b76e661acd93c21664678f140e53cfa1fa (patch)
treed2c53a622f094af06c1f097d939013628678e41d /libavcodec/hevc.c
parent1493b237bd3f9707319ac58d315ce45312900c10 (diff)
downloadffmpeg-f43789b76e661acd93c21664678f140e53cfa1fa.tar.gz
hevc: set the keyframe flag on output frames
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/hevc.c')
-rw-r--r--libavcodec/hevc.c2
1 files changed, 2 insertions, 0 deletions
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;