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:
Rudolf Polzer 2013-06-09 15:50:53 +02:00
parent 0cbc75c083
commit 19d80e28e1
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}