aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-01-23 22:16:31 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-01-23 22:16:31 +0000
commit14120c95f02a677cb2e4008c2856d5cc715b2ccd (patch)
tree799ffa3a878a3edfd315b2134c219244afd93d4d
parent6e4668b8a952d7ef97329b26f08023345a02d612 (diff)
downloadffmpeg-14120c95f02a677cb2e4008c2856d5cc715b2ccd.tar.gz
set pts and dts when only pts is present, according to specs
Originally committed as revision 16734 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/mpegts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index e25a0d0891..5d07e39c9f 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -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);