Mercurial > libavformat.hg
diff utils.c @ 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 | 549e594a13c2 |
| children | 095009fc2f35 |
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);
