Browse Source

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>
tags/n2.6
Martin Storsjö 10 years ago
parent
commit
ba2e07909b
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/rtpdec_vp8.c

+ 2
- 0
libavformat/rtpdec_vp8.c View File

@@ -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;
}



Loading…
Cancel
Save