Mercurial > libavformat.hg
diff utils.c @ 367:3fca8e9142a4 libavformat
avsync patch by (Gildas Bazin <gbazin at altern dot org>)
| author | michael |
|---|---|
| date | Fri, 20 Feb 2004 14:39:15 +0000 |
| parents | 6770ca07abe2 |
| children | 845f9de2c883 |
line wrap: on
line diff
--- a/utils.c Thu Feb 19 22:34:13 2004 +0000 +++ b/utils.c Fri Feb 20 14:39:15 2004 +0000 @@ -625,8 +625,14 @@ } else { /* presentation is not delayed : PTS and DTS are the same */ if (pkt->pts == AV_NOPTS_VALUE) { - pkt->pts = st->cur_dts; - pkt->dts = st->cur_dts; + if (pkt->dts == AV_NOPTS_VALUE) { + pkt->pts = st->cur_dts; + pkt->dts = st->cur_dts; + } + else { + st->cur_dts = pkt->dts; + pkt->pts = pkt->dts; + } } else { st->cur_dts = pkt->pts; pkt->dts = pkt->pts;
