[SCM] libav/experimental: set pts and dts when only pts is present, according to specs
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:35:51 UTC 2013
The following commit has been merged in the experimental branch:
commit 14120c95f02a677cb2e4008c2856d5cc715b2ccd
Author: Baptiste Coudurier <baptiste.coudurier at gmail.com>
Date: Fri Jan 23 22:16:31 2009 +0000
set pts and dts when only pts is present, according to specs
Originally committed as revision 16734 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index e25a0d0..5d07e39 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);
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list