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/oggparsetheora.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavformat/oggparsetheora.c') diff --git a/libavformat/oggparsetheora.c b/libavformat/oggparsetheora.c index 617d1ded51..b976dcb701 100644 --- a/libavformat/oggparsetheora.c +++ b/libavformat/oggparsetheora.c @@ -124,6 +124,9 @@ theora_gptopts(AVFormatContext *ctx, int idx, uint64_t gp) uint64_t iframe = gp >> thp->gpshift; uint64_t pframe = gp & thp->gpmask; + if(!pframe) + os->pflags |= PKT_FLAG_KEY; + return iframe + pframe; } -- cgit v1.2.3