summaryrefslogtreecommitdiff
path: root/libavformat/oggdec.h
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/oggdec.h
parent7ffd8332c7fa25174fad540d71e79f538d45a9a3 (diff)
oggdec: Set dts when known
Originally committed as revision 21134 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/oggdec.h')
-rw-r--r--libavformat/oggdec.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/libavformat/oggdec.h b/libavformat/oggdec.h
index 4db3fa6132..7c677a1de4 100644
--- a/libavformat/oggdec.h
+++ b/libavformat/oggdec.h
@@ -40,7 +40,12 @@ struct ogg_codec {
*/
int (*header)(AVFormatContext *, int);
int (*packet)(AVFormatContext *, int);
- uint64_t (*gptopts)(AVFormatContext *, int, uint64_t);
+ /**
+ * Translate a granule into a timestamp.
+ * Will set dts if non-null and known.
+ * @return pts
+ */
+ uint64_t (*gptopts)(AVFormatContext *, int, uint64_t, int64_t *dts);
/**
* 1 if granule is the start time of the associated packet.
* 0 if granule is the end time of the associated packet.
@@ -60,6 +65,7 @@ struct ogg_stream {
uint32_t seq;
uint64_t granule;
int64_t lastpts;
+ int64_t lastdts;
int flags;
const struct ogg_codec *codec;
int header;