Skip to content

Commit

Permalink
Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusfriedman committed Oct 25, 2024
1 parent 65af543 commit 9c92541
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Codecs/Image/Jpeg/Markers/HuffmanTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ namespace Media.Codec.Jpeg;

public class HuffmanTable : Marker
{
public new const int Length = 1;

public HuffmanTable(int size) : base(Markers.HuffmanTable, LengthBytes + Length + size)
public HuffmanTable(int size) : base(Markers.HuffmanTable, LengthBytes + size)
{
}

Expand All @@ -20,8 +18,8 @@ public HuffmanTable(MemorySegment segment)

public MemorySegment TableData
{
get => this.Slice(DataOffset + Length);
set => value.CopyTo(Array, DataOffset + Length);
get => this.Slice(DataOffset);
set => value.CopyTo(Array, DataOffset);
}

internal IEnumerable<DerivedTable> Tables
Expand Down

0 comments on commit 9c92541

Please sign in to comment.