0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

demux: fix -correct-pts autoselection with -audiofile

Make demuxer-based -correct-pts autoselection base the decision on the
video demuxer in case several are being used, such as with
-audiofile.
This commit is contained in:
Uoti Urpala 2010-11-07 22:49:50 +02:00
parent 12d3e0df99
commit 3628a903f4

View File

@ -1224,7 +1224,7 @@ demuxer_t *demux_open(struct MPOpts *opts, stream_t *vs, int file_format,
opts->correct_pts = opts->user_correct_pts;
if (opts->correct_pts < 0)
opts->correct_pts =
demux_control(res, DEMUXER_CTRL_CORRECT_PTS,
demux_control(vd ? vd : res, DEMUXER_CTRL_CORRECT_PTS,
NULL) == DEMUXER_CTRL_OK;
return res;
}