mirror of https://github.com/mpv-player/mpv
video: unbreak EOF with video-only files that have timestamp resets
Normally when there's a timestamp reset, we make audio resync to make sure audio and video line up (again). But in video-only mode, just setting audio to resyncing breaks EOF detection, because there's no code which would get audio_status out of this bogus state.
This commit is contained in:
parent
c3803e3254
commit
59d44ecef1
|
@ -574,7 +574,8 @@ static void handle_new_frame(struct MPContext *mpctx)
|
|||
MP_WARN(mpctx, "Invalid video timestamp: %f -> %f\n",
|
||||
mpctx->video_pts, pts);
|
||||
frame_time = 0;
|
||||
mpctx->audio_status = STATUS_SYNCING;
|
||||
if (mpctx->d_audio)
|
||||
mpctx->audio_status = STATUS_SYNCING;
|
||||
}
|
||||
}
|
||||
mpctx->video_next_pts = pts;
|
||||
|
|
Loading…
Reference in New Issue