mirror of https://github.com/mpv-player/mpv
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.
This commit is contained in:
parent
0cbc75c083
commit
19d80e28e1
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue