Skip to content

Commit

Permalink
Merge pull request #94 from Revan1985/dotnetcore
Browse files Browse the repository at this point in the history
JPEG Payload and missing H265 Donl management
  • Loading branch information
ngraziano authored Jan 12, 2024
2 parents 411aa75 + 8c7b66d commit 83d48ad
Show file tree
Hide file tree
Showing 4 changed files with 964 additions and 23 deletions.
18 changes: 18 additions & 0 deletions RTSP/ArrayUtils.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
namespace Rtsp
{
internal static class ArrayUtils
{
public static bool IsBytesEquals(byte[] bytes1, int offset1, int count1, byte[] bytes2, int offset2, int count2)
{
if (count1 != count2)
return false;

for (int i = 0; i < count1; i++)
if (bytes1[offset1 + i] != bytes2[offset2 + i])
return false;

return true;
}
}

}
2 changes: 1 addition & 1 deletion RTSP/Rtp/H265Payload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class H265Payload : IPayloadProcessor
private readonly MemoryStream fragmented_nal = new(); // used to concatenate fragmented H264 NALs where NALs are split over RTP packets

// Constructor
public H265Payload(bool has_donl, ILogger<H265Payload> logger)
public H265Payload(bool has_donl, ILogger<H265Payload>? logger)
{
this.has_donl = has_donl;
_logger = logger as ILogger ?? NullLogger.Instance;
Expand Down
Loading

0 comments on commit 83d48ad

Please sign in to comment.