1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-11 09:25:56 +00: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,6 +574,7 @@ static void handle_new_frame(struct MPContext *mpctx)
MP_WARN(mpctx, "Invalid video timestamp: %f -> %f\n", MP_WARN(mpctx, "Invalid video timestamp: %f -> %f\n",
mpctx->video_pts, pts); mpctx->video_pts, pts);
frame_time = 0; frame_time = 0;
if (mpctx->d_audio)
mpctx->audio_status = STATUS_SYNCING; mpctx->audio_status = STATUS_SYNCING;
} }
} }