diff --git a/src/JT1078.Flv/JT1078.Flv.csproj b/src/JT1078.Flv/JT1078.Flv.csproj index fcfb6b5..2c5805c 100644 --- a/src/JT1078.Flv/JT1078.Flv.csproj +++ b/src/JT1078.Flv/JT1078.Flv.csproj @@ -14,7 +14,7 @@ <licenseUrl>https://github.com/SmallChi/JT1078/blob/master/LICENSE</licenseUrl> <license>https://github.com/SmallChi/JT1078/blob/master/LICENSE</license> <GeneratePackageOnBuild>false</GeneratePackageOnBuild> - <Version>1.0.0-preview4</Version> + <Version>1.0.0-preview5</Version> <SignAssembly>false</SignAssembly> <PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance> <PackageLicenseFile>LICENSE</PackageLicenseFile> diff --git a/src/JT1078.Protocol/H264/H264Decoder.cs b/src/JT1078.Protocol/H264/H264Decoder.cs index ab3e952..32ce968 100644 --- a/src/JT1078.Protocol/H264/H264Decoder.cs +++ b/src/JT1078.Protocol/H264/H264Decoder.cs @@ -125,7 +125,7 @@ namespace JT1078.Protocol.H264 var sourceIndex = 0; for (i = 0; i < newLength; sourceIndex++, i++) { - if (sourceIndex == EPBPositions[0]) + if (EPBPositions.Any()&&sourceIndex == EPBPositions[0]) { // Skip this byte sourceIndex++; diff --git a/src/JT808.Protocol.Extensions.JT1078/JT808.Protocol.Extensions.JT1078.csproj b/src/JT808.Protocol.Extensions.JT1078/JT808.Protocol.Extensions.JT1078.csproj index 7bb6b4b..8ffe968 100644 --- a/src/JT808.Protocol.Extensions.JT1078/JT808.Protocol.Extensions.JT1078.csproj +++ b/src/JT808.Protocol.Extensions.JT1078/JT808.Protocol.Extensions.JT1078.csproj @@ -15,7 +15,7 @@ <licenseUrl>https://github.com/SmallChi/JT1078/blob/master/LICENSE</licenseUrl> <license>https://github.com/SmallChi/JT1078/blob/master/LICENSE</license> <GeneratePackageOnBuild>false</GeneratePackageOnBuild> - <Version>2.2.1</Version> + <Version>2.2.2</Version> <PackageLicenseFile>LICENSE</PackageLicenseFile> </PropertyGroup> @@ -28,7 +28,7 @@ </PropertyGroup> <ItemGroup> - <PackageReference Include="JT808" Version="2.2.1" /> + <PackageReference Include="JT808" Version="2.2.2" /> </ItemGroup> <ItemGroup>