summaryrefslogtreecommitdiffstats
path: root/mpvcore/player/video.c
diff options
context:
space:
mode:
Diffstat (limited to 'mpvcore/player/video.c')
-rw-r--r--mpvcore/player/video.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mpvcore/player/video.c b/mpvcore/player/video.c
index a758995c09..daa98c55f6 100644
--- a/mpvcore/player/video.c
+++ b/mpvcore/player/video.c
@@ -295,8 +295,11 @@ double update_video(struct MPContext *mpctx, double endpts)
struct demux_packet *pkt = demux_read_packet(d_video->header);
if (pkt && pkt->pts != MP_NOPTS_VALUE)
pkt->pts += mpctx->video_offset;
- if (pkt && pkt->pts >= mpctx->hrseek_pts - .005)
+ if ((pkt && pkt->pts >= mpctx->hrseek_pts - .005) ||
+ d_video->has_broken_packet_pts)
+ {
mpctx->hrseek_framedrop = false;
+ }
int framedrop_type = mpctx->hrseek_active && mpctx->hrseek_framedrop ?
1 : check_framedrop(mpctx, -1);
struct mp_image *decoded_frame =