From 19d80e28e1fa0383e684b2ad2af43745b37e59cf Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sun, 9 Jun 2013 15:50:53 +0200 Subject: [PATCH] encoding -omaxfps: do not shift pts when pts are repeated entirely This is just to make sure. I have no test case for this, but the logic seems saner that way. --- video/out/vo_lavc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/out/vo_lavc.c b/video/out/vo_lavc.c index 840103c0c2..df2145a798 100644 --- a/video/out/vo_lavc.c +++ b/video/out/vo_lavc.c @@ -405,7 +405,7 @@ static void draw_image(struct vo *vo, mp_image_t *mpi) // lastframeipts: pts of last ENCODED frame // now we want to go forward in time until at least lastframeipts + mindeltapts // so let's just assume this frame took place at this time or later - if (frameipts >= vc->lastframeipts && frameipts < vc->lastframeipts + vc->mindeltapts) { + if (frameipts > vc->lastframeipts && frameipts < vc->lastframeipts + vc->mindeltapts) { frameipts = vc->lastframeipts + vc->mindeltapts; vc->lastpts = frameipts * timeunit - encode_lavc_getoffset(ectx, vc->stream); }