# HG changeset patch # User bcoudurier # Date 1232748991 0 # Node ID 99d0dac3981379153a2697b37b70cc32c5b8ccfb # Parent 2402eb8c37fff7617d9d9ef61c5272a6eadaba47 set pts and dts when only pts is present, according to specs diff -r 2402eb8c37ff -r 99d0dac39813 mpegts.c --- 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);