[FFmpeg-cvslog] hevc: set the keyframe flag on output frames

Mickaël Raulet git at videolan.org
Fri Jul 11 12:16:41 CEST 2014


ffmpeg | branch: master | Mickaël Raulet <mraulet at insa-rennes.fr> | Fri Jul  4 11:21:55 2014 -0400| [f43789b76e661acd93c21664678f140e53cfa1fa] | committer: Anton Khirnov

hevc: set the keyframe flag on output frames

Signed-off-by: Vittorio Giovara <vittorio.giovara at gmail.com>
Signed-off-by: Anton Khirnov <anton at khirnov.net>

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

 libavcodec/hevc.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index 9d7a53a..d801a47 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;



More information about the ffmpeg-cvslog mailing list