summaryrefslogtreecommitdiff
path: root/libavformat/oggparsetheora.c
diff options
context:
space:
mode:
authorDavid Conrad <lessen42@gmail.com>2010-01-11 05:51:09 +0000
committerDavid Conrad <lessen42@gmail.com>2010-01-11 05:51:09 +0000
commit2d4970d88dd507de1595b8ee3b65cc5da73af5ea (patch)
tree51dc56697b7b49be44c6712da414a41eb8d93276 /libavformat/oggparsetheora.c
parent7ffd8332c7fa25174fad540d71e79f538d45a9a3 (diff)
oggdec: Set dts when known
Originally committed as revision 21134 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/oggparsetheora.c')
-rw-r--r--libavformat/oggparsetheora.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/oggparsetheora.c b/libavformat/oggparsetheora.c
index 0d74116d17..8b35a47224 100644
--- a/libavformat/oggparsetheora.c
+++ b/libavformat/oggparsetheora.c
@@ -123,7 +123,7 @@ theora_header (AVFormatContext * s, int idx)
}
static uint64_t
-theora_gptopts(AVFormatContext *ctx, int idx, uint64_t gp)
+theora_gptopts(AVFormatContext *ctx, int idx, uint64_t gp, int64_t *dts)
{
struct ogg *ogg = ctx->priv_data;
struct ogg_stream *os = ogg->streams + idx;
@@ -137,6 +137,9 @@ theora_gptopts(AVFormatContext *ctx, int idx, uint64_t gp)
if(!pframe)
os->pflags |= PKT_FLAG_KEY;
+ if (dts)
+ *dts = iframe + pframe;
+
return iframe + pframe;
}