diff --git a/gst/mpegtsdemux/mpegtspacketizer.c b/gst/mpegtsdemux/mpegtspacketizer.c index a0ba2a5e7b..fc6967ace0 100644 --- a/gst/mpegtsdemux/mpegtspacketizer.c +++ b/gst/mpegtsdemux/mpegtspacketizer.c @@ -2268,7 +2268,7 @@ mpegts_packetizer_pts_to_ts (MpegTSPacketizer2 * packetizer, res = GST_CLOCK_TIME_NONE; else { GstClockTime tmp = pcrtable->base_time + pcrtable->skew; - if (tmp + res > pcrtable->base_pcrtime) + if (tmp + res >= pcrtable->base_pcrtime) res += tmp - pcrtable->base_pcrtime; else res = GST_CLOCK_TIME_NONE;