From 3f4e17a96b8dd4677172c565369a5941027b2fdd Mon Sep 17 00:00:00 2001 From: waterliu99 Date: Tue, 19 May 2020 23:38:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84SDT=E5=8D=8F=E8=AE=AE?= =?UTF-8?q?=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/JT1078.Hls/TS_SDT_Service.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/JT1078.Hls/TS_SDT_Service.cs b/src/JT1078.Hls/TS_SDT_Service.cs index 50458cd..1b6525a 100644 --- a/src/JT1078.Hls/TS_SDT_Service.cs +++ b/src/JT1078.Hls/TS_SDT_Service.cs @@ -63,14 +63,14 @@ namespace JT1078.Hls public void ToBuffer(ref TSMessagePackWriter writer) { writer.WriteUInt16(ServiceId); - writer.WriteByte((byte)((ReservedFutureUse << 2) | (EITScheduleFlag << 1) | EITPresentFollowingFlag)); + writer.WriteByte((byte)(ReservedFutureUse << 2 | EITScheduleFlag << 1 | EITPresentFollowingFlag)); writer.Skip(2, out var position); foreach (var descriptor in Descriptors) { descriptor.ToBuffer(ref writer); } DescriptorsLoopLength = (ushort)(writer.GetCurrentPosition() - position); - writer.WriteUInt16Return((ushort)(((ushort)RunningStatus << 13) | ((ushort)FreeCAMode << 12) | DescriptorsLoopLength), position); + writer.WriteUInt16Return((ushort)((ushort)RunningStatus << 13 | (ushort)FreeCAMode << 12 | DescriptorsLoopLength), position); } } }