[FFmpeg-cvslog] rtpdec_vp8: Set the keyframe flag

Martin Storsjö git at videolan.org
Fri Feb 20 21:23:13 CET 2015


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Fri Feb 20 16:17:44 2015 +0200| [ba2e07909b848e583245856a59d0fe1dd08f917e] | committer: Martin Storsjö

rtpdec_vp8: Set the keyframe flag

This allows the output to be used with stream copy, which discards
packet from the start until the first keyframe.

Signed-off-by: Martin Storsjö <martin at martin.st>

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

 libavformat/rtpdec_vp8.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/rtpdec_vp8.c b/libavformat/rtpdec_vp8.c
index fc86ac1..1a71240 100644
--- a/libavformat/rtpdec_vp8.c
+++ b/libavformat/rtpdec_vp8.c
@@ -261,6 +261,8 @@ static int vp8_handle_packet(AVFormatContext *ctx, PayloadContext *vp8,
             return ret;
         if (vp8->sequence_dirty)
             pkt->flags |= AV_PKT_FLAG_CORRUPT;
+        if (vp8->is_keyframe)
+            pkt->flags |= AV_PKT_FLAG_KEY;
         return 0;
     }
 



More information about the ffmpeg-cvslog mailing list