diff options
author | David Conrad <lessen42@gmail.com> | 2010-01-11 08:51:09 +0300 |
---|---|---|
committer | David Conrad <lessen42@gmail.com> | 2010-01-11 08:51:09 +0300 |
commit | 2d4970d88dd507de1595b8ee3b65cc5da73af5ea (patch) | |
tree | 51dc56697b7b49be44c6712da414a41eb8d93276 /libavformat/oggparsetheora.c | |
parent | 7ffd8332c7fa25174fad540d71e79f538d45a9a3 (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.c | 5 |
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; } |