diff --git a/TtxFromTS/DVB/PESFactory.cs b/TtxFromTS/DVB/PESFactory.cs index b538b4f..ed5f47e 100644 --- a/TtxFromTS/DVB/PESFactory.cs +++ b/TtxFromTS/DVB/PESFactory.cs @@ -38,7 +38,10 @@ public class PESFactory // If we have an elementary stream packet, add the packet and decode the PES if it is complete if (_elementaryStreamPacket != null) { - _elementaryStreamPacket.Add(packet); + if (packet.Payload != null) + { + _elementaryStreamPacket.Add(packet); + } if (_elementaryStreamPacket.HasAllBytes()) { _elementaryStreamPacket.Decode();