# HG changeset patch # User michael # Date 1106965653 0 # Node ID ffad4fdbd3d174153854fc94a9ac4770e0e11033 # Parent 47d5b20c9aba272565af7f08a2eb7a8398b17c65 dont predict missing timestamps if we lack the required information to do so diff -r 47d5b20c9aba -r ffad4fdbd3d1 utils.c --- a/utils.c Fri Jan 28 12:13:53 2005 +0000 +++ b/utils.c Sat Jan 29 02:27:33 2005 +0000 @@ -745,7 +745,7 @@ st->last_IP_pts= pkt->pts; /* cannot compute PTS if not present (we can compute it only by knowing the futur */ - } else { + } else if(pkt->pts != AV_NOPTS_VALUE || pkt->dts != AV_NOPTS_VALUE || pkt->duration){ if(pkt->pts != AV_NOPTS_VALUE && pkt->duration){ int64_t old_diff= ABS(st->cur_dts - pkt->duration - pkt->pts); int64_t new_diff= ABS(st->cur_dts - pkt->pts);