mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-26 21:00:21 +00:00
vo: remove suspicious line
pts can never be 0 or negative. If there is no frame, some code below catches this case by checking hasframe.
This commit is contained in:
@@ -604,7 +604,7 @@ static bool render_frame(struct vo *vo)
|
||||
int64_t duration = in->frame_duration;
|
||||
struct mp_image *img = in->frame_queued;
|
||||
|
||||
if (!img && (!in->vsync_timed || in->paused || pts <= 0))
|
||||
if (!img && (!in->vsync_timed || in->paused))
|
||||
goto nothing_done;
|
||||
|
||||
if (in->vsync_timed && !in->hasframe)
|
||||
|
||||
Reference in New Issue
Block a user