From e1a794b2728afc479891917171b969cfdaf5262d Mon Sep 17 00:00:00 2001 From: Måns Rullgård Date: Sun, 11 Nov 2007 21:56:18 +0000 Subject: set PKT_FLAG_KEY for Theora and OGM streams Originally committed as revision 11002 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/oggparseogm.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavformat/oggparseogm.c') 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; -- cgit v1.2.3