public TsPesPacket AllocatePesPacket(BufferInstance bufferEntry)
 {
     if (null == bufferEntry)
     {
         throw new ArgumentNullException("bufferEntry");
     }
     bufferEntry.Reference();
     return(this.AllocatePacketWithOwnedBuffer(bufferEntry));
 }
Esempio n. 2
0
        public TsPesPacket AllocatePesPacket(BufferInstance bufferEntry)
        {
            if (null == bufferEntry)
                throw new ArgumentNullException(nameof(bufferEntry));

            bufferEntry.Reference();

            var packet = AllocatePacketWithOwnedBuffer(bufferEntry);

#if DEBUG
            //Debug.WriteLine("Allocate PES Packet({0}) Index {1} Length {2} Time {3} {4}", packet.PacketId, packet.Index, packet.Length, packet.PresentationTimestamp, packet.BufferEntry);
#endif

            return packet;
        }