diff options
author | Rudolf Polzer <divverent@xonotic.org> | 2013-06-09 15:50:53 +0200 |
---|---|---|
committer | Rudolf Polzer <divverent@xonotic.org> | 2013-06-09 15:50:53 +0200 |
commit | 19d80e28e1fa0383e684b2ad2af43745b37e59cf (patch) | |
tree | 533c77ebf8a3992c59fdb0bd526eff7b2160d378 | |
parent | 0cbc75c0834a4ba93b67a79467b80324b06165f4 (diff) |
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.
-rw-r--r-- | video/out/vo_lavc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |