summaryrefslogtreecommitdiff
path: root/libavformat/oggdec.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/oggdec.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/oggdec.c')
-rw-r--r--libavformat/oggdec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index 03377d9cfa..211208dd25 100644
--- a/libavformat/oggdec.c
+++ b/libavformat/oggdec.c
@@ -377,6 +377,7 @@ ogg_packet (AVFormatContext * s, int *str, int *dstart, int *dsize)
}
if (os->header > -1 && os->seq > os->header){
+ os->pflags = 0;
if (os->codec && os->codec->packet)
os->codec->packet (s, idx);
if (str)
@@ -525,6 +526,8 @@ ogg_read_packet (AVFormatContext * s, AVPacket * pkt)
os->lastgp = -1;
}
+ pkt->flags = os->pflags;
+
return psize;
}