hevc: set the keyframe flag on output frames
authorMickaël Raulet <mraulet@insa-rennes.fr>
Fri, 4 Jul 2014 15:21:55 +0000 (11:21 -0400)
committerAnton Khirnov <anton@khirnov.net>
Fri, 11 Jul 2014 08:43:01 +0000 (08:43 +0000)
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/hevc.c

index 9d7a53a..d801a47 100644 (file)
@@ -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;