Mercurial > libavformat.hg
changeset 1926:5e66b1924b43 libavformat
remove useless if()
author | michael |
---|---|
date | Sat, 17 Mar 2007 02:23:53 +0000 |
parents | 9012fcda4257 |
children | 2949180856b0 |
files | utils.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Sat Mar 17 02:03:59 2007 +0000 +++ b/utils.c Sat Mar 17 02:23:53 2007 +0000 @@ -632,7 +632,7 @@ st->last_IP_pts= pkt->pts; /* cannot compute PTS if not present (we can compute it only by knowing the futur */ - } else if(pkt->pts != AV_NOPTS_VALUE || pkt->dts != AV_NOPTS_VALUE || pkt->duration){ + } else { 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);