summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorRudolf Polzer <divverent@xonotic.org>2013-06-09 15:50:53 +0200
committerRudolf Polzer <divverent@xonotic.org>2013-06-09 15:50:53 +0200
commit19d80e28e1fa0383e684b2ad2af43745b37e59cf (patch)
tree533c77ebf8a3992c59fdb0bd526eff7b2160d378 /video
parent0cbc75c0834a4ba93b67a79467b80324b06165f4 (diff)
downloadmpv-19d80e28e1fa0383e684b2ad2af43745b37e59cf.tar.bz2
mpv-19d80e28e1fa0383e684b2ad2af43745b37e59cf.tar.xz
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.
Diffstat (limited to 'video')
-rw-r--r--video/out/vo_lavc.c2
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);
}