summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec_vp8.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2015-02-20 16:17:44 +0200
committerMartin Storsjö <martin@martin.st>2015-02-20 19:28:28 +0200
commitba2e07909b848e583245856a59d0fe1dd08f917e (patch)
tree80c5f00c33f1d9ce88c04eccf7865bb2e6a845a6 /libavformat/rtpdec_vp8.c
parentb727b0eeb73cd78533a7fd387ceccd505e48fa6c (diff)
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@martin.st>
Diffstat (limited to 'libavformat/rtpdec_vp8.c')
-rw-r--r--libavformat/rtpdec_vp8.c2
1 files changed, 2 insertions, 0 deletions
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;
}