set pts and dts when only pts is present, according to specs
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Fri, 23 Jan 2009 22:16:31 +0000 (22:16 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Fri, 23 Jan 2009 22:16:31 +0000 (22:16 +0000)
Originally committed as revision 16734 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mpegts.c

index e25a0d0..5d07e39 100644 (file)
@@ -888,7 +888,7 @@ static void mpegts_push_data(MpegTSFilter *filter,
                 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);