diff mpegts.c @ 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 77e0c7511d41
children 85ba93088fb5
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);