Mercurial > libavformat.hg
changeset 666:ffad4fdbd3d1 libavformat
dont predict missing timestamps if we lack the required information to do so
author | michael |
---|---|
date | Sat, 29 Jan 2005 02:27:33 +0000 |
parents | 47d5b20c9aba |
children | 57e9d1bdcb09 |
files | utils.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);