diff oggparseogm.c @ 2732:2b101e9d25c0 libavformat

set PKT_FLAG_KEY for Theora and OGM streams
author mru
date Sun, 11 Nov 2007 21:56:18 +0000
parents b22ba392ac21
children 35b3eaafd9fe
line wrap: on
line diff
--- a/oggparseogm.c	Sat Nov 10 18:27:03 2007 +0000
+++ b/oggparseogm.c	Sun Nov 11 21:56:18 2007 +0000
@@ -134,6 +134,9 @@
     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;