mirror of
https://github.com/mpv-player/mpv
synced 2025-01-15 11:31:02 +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:
parent
9a5e062a04
commit
93104142f4
@ -1359,6 +1359,7 @@ void write_video(struct MPContext *mpctx)
|
|||||||
if (mpctx->num_past_frames == 1 && mpctx->past_frames[0].pts == 0 &&
|
if (mpctx->num_past_frames == 1 && mpctx->past_frames[0].pts == 0 &&
|
||||||
!mpctx->ao_chain)
|
!mpctx->ao_chain)
|
||||||
{
|
{
|
||||||
|
MP_VERBOSE(mpctx, "assuming this is an image\n");
|
||||||
mpctx->time_frame += opts->image_display_duration;
|
mpctx->time_frame += opts->image_display_duration;
|
||||||
} else {
|
} else {
|
||||||
mpctx->time_frame = 0;
|
mpctx->time_frame = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user