aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/oggdec.h
diff options
context:
space:
mode:
authorDavid Conrad <lessen42@gmail.com>2009-12-12 20:18:43 +0000
committerDavid Conrad <lessen42@gmail.com>2009-12-12 20:18:43 +0000
commit5e15c7d95be456e9dafbcca7cb0d936cc331dbae (patch)
tree8643ef620e2b65b6a388d317fbce837beafde1e1 /libavformat/oggdec.h
parent7a14430ed75a2eaaa430e46c2f54a7a9a8b71804 (diff)
downloadffmpeg-5e15c7d95be456e9dafbcca7cb0d936cc331dbae.tar.gz
Fix PTS for OGM codecs.
Fixes issue251 Originally committed as revision 20815 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/oggdec.h')
-rw-r--r--libavformat/oggdec.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/libavformat/oggdec.h b/libavformat/oggdec.h
index cefde7e2fd..696233dd43 100644
--- a/libavformat/oggdec.h
+++ b/libavformat/oggdec.h
@@ -41,6 +41,11 @@ struct ogg_codec {
int (*header)(AVFormatContext *, int);
int (*packet)(AVFormatContext *, int);
uint64_t (*gptopts)(AVFormatContext *, int, uint64_t);
+ /**
+ * 1 if granule is the start time of the associated packet.
+ * 0 if granule is the end time of the associated packet.
+ */
+ int granule_is_start;
};
struct ogg_stream {
@@ -53,12 +58,14 @@ struct ogg_stream {
unsigned int pduration;
uint32_t serial;
uint32_t seq;
- uint64_t granule, lastgp;
+ uint64_t granule;
+ int64_t lastpts;
int flags;
const struct ogg_codec *codec;
int header;
int nsegs, segp;
uint8_t segments[255];
+ int page_end; ///< current packet is the last one completed in the page
void *private;
};