diff options
author | 2013-11-16 21:04:28 +0100 | |
---|---|---|
committer | 2013-11-16 21:46:17 +0100 | |
commit | a2a24b957ec7dae8b9d312af8292b5e5e82d77be (patch) | |
tree | c4d9ad9cd7196a5f3ea5f8d83b570e55fb27b3a9 /demux/demux_packet.h | |
parent | 0cdbc6db6ea1ee6cdeedec6c8bd84e692d5f82d3 (diff) |
demux: simplify handling of filepos field
demuxer->filepos contains the byte offset of the last read packet. This
is so that the player can estimate the current playback position, if no
proper timestamps are available. Simplify it to use demux_packet->pos in
the generic demuxer code, instead of bothering every demuxer
implementation about it.
(Note that this is still a bit incorrect: it relfects the position of
the last packet read by the demuxer, not that returned to the user. But
that was already broken, and is not that trivial to fix.)
Diffstat (limited to 'demux/demux_packet.h')
-rw-r--r-- | demux/demux_packet.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demux/demux_packet.h b/demux/demux_packet.h index 25731d914a..0d1a6e6f03 100644 --- a/demux/demux_packet.h +++ b/demux/demux_packet.h @@ -28,7 +28,7 @@ typedef struct demux_packet { double pts; double duration; double stream_pts; - int64_t pos; // position in index (AVI) or file (MPG) + int64_t pos; // position in source file byte stream unsigned char *buffer; bool keyframe; struct demux_packet *next; |