summaryrefslogtreecommitdiff
path: root/libavformat/oggparseogm.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2007-11-11 21:56:18 +0000
committerMåns Rullgård <mans@mansr.com>2007-11-11 21:56:18 +0000
commite1a794b2728afc479891917171b969cfdaf5262d (patch)
tree1da85d36da89f7c18d3a6352682b43952a979be2 /libavformat/oggparseogm.c
parent6865337f7bfa38029cf73b7b7026b446051ce1a2 (diff)
set PKT_FLAG_KEY for Theora and OGM streams
Originally committed as revision 11002 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/oggparseogm.c')
-rw-r--r--libavformat/oggparseogm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/oggparseogm.c b/libavformat/oggparseogm.c
index edafd65289..bbf9cb8c8d 100644
--- a/libavformat/oggparseogm.c
+++ b/libavformat/oggparseogm.c
@@ -134,6 +134,9 @@ ogm_packet(AVFormatContext *s, int idx)
uint8_t *p = os->buf + os->pstart;
int lb;
+ if(*p & 8)
+ os->pflags |= PKT_FLAG_KEY;
+
lb = ((*p & 2) << 1) | ((*p >> 6) & 3);
os->pstart += lb + 1;
os->psize -= lb + 1;