diff options
author | Uoti Urpala <uau@mplayer2.org> | 2011-07-30 21:05:59 +0300 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2011-07-30 21:05:59 +0300 |
commit | f1bb6fde3288cbbaf01175b980b9704f9406ce80 (patch) | |
tree | d2ca0f86394e7f95af43d80297cd52b25b784f97 /libmpdemux | |
parent | b33bb28ea3218399d6023a8f3fd2f9a86a3dec41 (diff) | |
download | mpv-f1bb6fde3288cbbaf01175b980b9704f9406ce80.tar.bz2 mpv-f1bb6fde3288cbbaf01175b980b9704f9406ce80.tar.xz |
core: audio: if audio pts is missing return MP_NOPTS_VALUE
Change written_audio_pts() and playing_audio_pts() to return
MP_NOPTS_VALUE if no reasonable pts estimate is available. Before they
returned some incorrect value typically around zero (but not
necessarily exactly that).
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demuxer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/demuxer.c b/libmpdemux/demuxer.c index 9aaed21a8f..ef3bd36e29 100644 --- a/libmpdemux/demuxer.c +++ b/libmpdemux/demuxer.c @@ -779,7 +779,7 @@ void ds_free_packs(demux_stream_t *ds) ds->current = NULL; ds->buffer = NULL; ds->buffer_pos = ds->buffer_size; - ds->pts = 0; + ds->pts = MP_NOPTS_VALUE; ds->pts_bytes = 0; } |