OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b727b0e
)
rtpdec_vp8: Set the keyframe flag
author
Martin Storsjö
<martin@martin.st>
Fri, 20 Feb 2015 14:17:44 +0000
(16:17 +0200)
committer
Martin Storsjö
<martin@martin.st>
Fri, 20 Feb 2015 17:28:28 +0000
(19:28 +0200)
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>
libavformat/rtpdec_vp8.c
patch
|
blob
|
history
diff --git
a/libavformat/rtpdec_vp8.c
b/libavformat/rtpdec_vp8.c
index
fc86ac1
..
1a71240
100644
(file)
--- 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;
}