1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 17:42:17 +00:00

player: log if video is considered an image

It's a heristic that can fail, so better log it.
This commit is contained in:
wm4 2016-08-21 12:27:48 +02:00
parent 9a5e062a04
commit 93104142f4

View File

@ -1359,6 +1359,7 @@ void write_video(struct MPContext *mpctx)
if (mpctx->num_past_frames == 1 && mpctx->past_frames[0].pts == 0 &&
!mpctx->ao_chain)
{
MP_VERBOSE(mpctx, "assuming this is an image\n");
mpctx->time_frame += opts->image_display_duration;
} else {
mpctx->time_frame = 0;