Mercurial > libavformat.hg
changeset 1936:7222bddac3e2 libavformat
revert r8428, the check was not that useless
should fix constant pts=0 with broken demuxers
author | michael |
---|---|
date | Tue, 20 Mar 2007 13:59:59 +0000 |
parents | d86a3bda9418 |
children | 4997738b316c |
files | utils.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Tue Mar 20 13:01:39 2007 +0000 +++ b/utils.c Tue Mar 20 13:59:59 2007 +0000 @@ -633,7 +633,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= FFABS(st->cur_dts - pkt->duration - pkt->pts); int64_t new_diff= FFABS(st->cur_dts - pkt->pts);