From ba2e07909b848e583245856a59d0fe1dd08f917e Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Fri, 20 Feb 2015 16:17:44 +0200 Subject: rtpdec_vp8: Set the keyframe flag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ö --- libavformat/rtpdec_vp8.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavformat/rtpdec_vp8.c') diff --git a/libavformat/rtpdec_vp8.c b/libavformat/rtpdec_vp8.c index fc86ac1dd3..1a7124054d 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; } -- cgit v1.2.3