Mercurial > libavformat.hg
changeset 4280:99d0dac39813 libavformat
set pts and dts when only pts is present, according to specs
author | bcoudurier |
---|---|
date | Fri, 23 Jan 2009 22:16:31 +0000 |
parents | 2402eb8c37ff |
children | f1d8951d6813 |
files | mpegts.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegts.c Fri Jan 23 20:57:12 2009 +0000 +++ b/mpegts.c Fri Jan 23 22:16:31 2009 +0000 @@ -888,7 +888,7 @@ pes->pts = AV_NOPTS_VALUE; pes->dts = AV_NOPTS_VALUE; if ((flags & 0xc0) == 0x80) { - pes->pts = get_pts(r); + pes->dts = pes->pts = get_pts(r); r += 5; } else if ((flags & 0xc0) == 0xc0) { pes->pts = get_pts(r);