1
mirror of https://github.com/mpv-player/mpv synced 2024-11-14 22:48:35 +01:00

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:
wm4 2015-08-03 23:09:11 +02:00
parent c3803e3254
commit 59d44ecef1

View File

@ -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;