mirror of https://github.com/mpv-player/mpv
demux_demuxers: initialize stream_pts to MP_NOPTS_VALUE
demux_demuxers doesn't run the normal demuxer.c initialization for new demuxers. Initialize stream_pts separately (it won't ever be changed with the current implementation). This at least avoids other code assuming it was set properly.
This commit is contained in:
parent
9a663ffec6
commit
82cd2f7aec
|
@ -50,6 +50,7 @@ demuxer_t* new_demuxers_demuxer(demuxer_t* vd, demuxer_t* ad, demuxer_t* sd) {
|
|||
// Video is the most important :-)
|
||||
ret->stream = vd->stream;
|
||||
ret->seekable = vd->seekable && ad->seekable && sd->seekable;
|
||||
ret->stream_pts = MP_NOPTS_VALUE;
|
||||
|
||||
ret->video = vd->video;
|
||||
ret->audio = ad->audio;
|
||||
|
|
Loading…
Reference in New Issue