diff options
author | Martin Storsjö <martin@martin.st> | 2015-02-20 17:17:44 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2015-02-20 20:28:28 +0300 |
commit | ba2e07909b848e583245856a59d0fe1dd08f917e (patch) | |
tree | 80c5f00c33f1d9ce88c04eccf7865bb2e6a845a6 | |
parent | b727b0eeb73cd78533a7fd387ceccd505e48fa6c (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>
-rw-r--r-- | libavformat/rtpdec_vp8.c | 2 |
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; } |