Exemplo n.º 1
0
        public Media.Container.Node ReadUnit(TransportStreamUnit.PacketIdentifier name, long offset = 0)
        {
            long positionStart = Position;

            Media.Container.Node result = ReadUnits(offset, Length - offset, name).FirstOrDefault();

            Position = positionStart;

            return(result);
        }
Exemplo n.º 2
0
 public static TransportStreamUnit.AdaptationField.AdaptationFieldFlags GetAdaptationFieldFlags(TransportStreamReader reader, Media.Container.Node tsUnit)
 {
     return((TransportStreamUnit.AdaptationField.AdaptationFieldFlags)TransportStreamUnit.AdaptationField.GetAdaptationFieldData(tsUnit.Identifier, reader.UnitOverhead, tsUnit.Data, 0).FirstOrDefault());
 }