diff options
author | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-02-23 10:31:44 +0000 |
---|---|---|
committer | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-02-23 10:31:44 +0000 |
commit | 8f0095af652989ad8b2c873713ef0dfcc40353b7 (patch) | |
tree | fcf4a5d507c5c846552745dc1abd3e776c8476ee /libmpdemux/demuxer.h | |
parent | 5f2b3c6c67508a61b7441d1ebe6960114c620f9a (diff) | |
download | mpv-8f0095af652989ad8b2c873713ef0dfcc40353b7.tar.bz2 mpv-8f0095af652989ad8b2c873713ef0dfcc40353b7.tar.xz |
New member in demuxer_t: reference_clock.
If it's != MP_NOPTS_VALUE ds_fill_buffer() will keep
on demuxing until the pts of the next_pts is <= reference_clock.
It guarantees the compliance with the buffering model indicated
by the transmitter of the multiplex and a long-time stability
of playback (at least for me).
In any case up to a maximum of 64 packets are accumulated to prevent
memory hogging and leaks.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26069 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/demuxer.h')
-rw-r--r-- | libmpdemux/demuxer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libmpdemux/demuxer.h b/libmpdemux/demuxer.h index 76f4baca16..5a314e474a 100644 --- a/libmpdemux/demuxer.h +++ b/libmpdemux/demuxer.h @@ -194,6 +194,7 @@ typedef struct demuxer_st { off_t movi_end; stream_t *stream; double stream_pts; // current stream pts, if applicable (e.g. dvd) + double reference_clock; char *filename; ///< Needed by avs_check_file int synced; // stream synced (used by mpeg) int type; // demuxer type: mpeg PS, mpeg ES, avi, avi-ni, avi-nini, asf |