summaryrefslogtreecommitdiffstats
path: root/libmpdemux/demuxer.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2011-01-16 20:51:48 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2011-01-18 14:58:09 +0200
commit8e7dae173d07533e1de46fad7bb2f834febe27cf (patch)
tree1e16938db643ba43a83d55524626812957c75e0a /libmpdemux/demuxer.h
parente990fb2ffeaa786339895c8f3b3f104ef536bf39 (diff)
downloadmpv-8e7dae173d07533e1de46fad7bb2f834febe27cf.tar.bz2
mpv-8e7dae173d07533e1de46fad7bb2f834febe27cf.tar.xz
subtitles/demux: store duration instead of endpts in demux packets
Diffstat (limited to 'libmpdemux/demuxer.h')
-rw-r--r--libmpdemux/demuxer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpdemux/demuxer.h b/libmpdemux/demuxer.h
index df0fdaa9bb..ece4b74af8 100644
--- a/libmpdemux/demuxer.h
+++ b/libmpdemux/demuxer.h
@@ -127,7 +127,7 @@ enum timestamp_type {
typedef struct demux_packet {
int len;
double pts;
- double endpts;
+ double duration;
double stream_pts;
off_t pos; // position in index (AVI) or file (MPG)
unsigned char* buffer;
@@ -289,7 +289,7 @@ static inline demux_packet_t* new_demux_packet(int len){
dp->len=len;
dp->next=NULL;
dp->pts=MP_NOPTS_VALUE;
- dp->endpts=MP_NOPTS_VALUE;
+ dp->duration = -1;
dp->stream_pts = MP_NOPTS_VALUE;
dp->pos=0;
dp->flags=0;