Skip to content

Commit

Permalink
limit the seekID size to 4
Browse files Browse the repository at this point in the history
It's not legal to be any other size as described in ietf-wg-cellar/matroska-specification#731
  • Loading branch information
robUx4 committed Jan 7, 2024
1 parent c1b344a commit 1d72585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matroska/KaxSemantic.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ using namespace libebml;
namespace libmatroska {
DECLARE_MKX_BINARY (KaxSeekID)
public:
bool ValidateSize() const override {return IsFiniteSize() && GetSize() <= 4;}
bool ValidateSize() const override {return IsFiniteSize() && GetSize() == 4;}
};

DECLARE_MKX_UINTEGER(KaxSeekPosition)
Expand Down

0 comments on commit 1d72585

Please sign in to comment.