diff options
author | Måns Rullgård <mans@mansr.com> | 2007-11-11 21:56:18 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2007-11-11 21:56:18 +0000 |
commit | e1a794b2728afc479891917171b969cfdaf5262d (patch) | |
tree | 1da85d36da89f7c18d3a6352682b43952a979be2 /libavformat/oggparsetheora.c | |
parent | 6865337f7bfa38029cf73b7b7026b446051ce1a2 (diff) | |
download | ffmpeg-e1a794b2728afc479891917171b969cfdaf5262d.tar.gz |
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/oggparsetheora.c')
-rw-r--r-- | libavformat/oggparsetheora.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |