Skip to content

Commit

Permalink
move the KaxPrevUID and KaxNextUID in the semantic
Browse files Browse the repository at this point in the history
  • Loading branch information
robUx4 committed Dec 19, 2023
1 parent 992dd80 commit ab36bcf
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 46 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ set(libmatroska_PUBLIC_HEADERS
matroska/KaxCuesData.h
matroska/KaxCues.h
matroska/KaxDefines.h
matroska/KaxInfoData.h
matroska/KaxSeekHead.h
matroska/KaxSegment.h
matroska/KaxSemantic.h
Expand Down
39 changes: 0 additions & 39 deletions matroska/KaxInfoData.h

This file was deleted.

10 changes: 10 additions & 0 deletions matroska/KaxSemantic.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,19 @@ DECLARE_MKX_BINARY (KaxSegmentUID)
DECLARE_MKX_UNISTRING(KaxSegmentFilename)
};

DECLARE_MKX_BINARY (KaxPrevUID)
public:
bool ValidateSize() const override {return IsFiniteSize() && GetSize() == 16;}
};

DECLARE_MKX_UNISTRING(KaxPrevFilename)
};

DECLARE_MKX_BINARY (KaxNextUID)
public:
bool ValidateSize() const override {return IsFiniteSize() && GetSize() == 16;}
};

DECLARE_MKX_UNISTRING(KaxNextFilename)
};

Expand Down
5 changes: 2 additions & 3 deletions src/KaxSemantic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "matroska/KaxCluster.h"
#include "matroska/KaxTracks.h"
#include "matroska/KaxCues.h"
#include "matroska/KaxInfoData.h"
#include "matroska/KaxBlockData.h"
#include "matroska/KaxCuesData.h"

Expand Down Expand Up @@ -67,9 +66,9 @@ DEFINE_END_SEMANTIC(KaxInfo)
DEFINE_MKX_MASTER(KaxInfo, 0x1549A966, 4, KaxSegment, "Info")
DEFINE_MKX_BINARY (KaxSegmentUID, 0x73A4, 2, KaxInfo, "SegmentUID")
DEFINE_MKX_UNISTRING(KaxSegmentFilename, 0x7384, 2, KaxInfo, "SegmentFilename")
DEFINE_MKX_BINARY(KaxPrevUID, 0x3CB923, 3, KaxInfo, "PrevUID")
DEFINE_MKX_BINARY (KaxPrevUID, 0x3CB923, 3, KaxInfo, "PrevUID")
DEFINE_MKX_UNISTRING(KaxPrevFilename, 0x3C83AB, 3, KaxInfo, "PrevFilename")
DEFINE_MKX_BINARY(KaxNextUID, 0x3EB923, 3, KaxInfo, "NextUID")
DEFINE_MKX_BINARY (KaxNextUID, 0x3EB923, 3, KaxInfo, "NextUID")
DEFINE_MKX_UNISTRING(KaxNextFilename, 0x3E83BB, 3, KaxInfo, "NextFilename")
DEFINE_MKX_BINARY (KaxSegmentFamily, 0x4444, 2, KaxInfo, "SegmentFamily")

Expand Down
1 change: 0 additions & 1 deletion test/mux/test6.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include "matroska/KaxCluster.h"
#include "matroska/KaxSeekHead.h"
#include "matroska/KaxCues.h"
#include "matroska/KaxInfoData.h"

using namespace libmatroska;
using namespace std;
Expand Down
1 change: 0 additions & 1 deletion test/mux/test8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "matroska/KaxSegment.h"
#include "matroska/KaxContexts.h"
#include "matroska/KaxTracks.h"
#include "matroska/KaxInfoData.h"
#include "matroska/KaxCluster.h"
#include "matroska/KaxBlockData.h"
#include "matroska/KaxSeekHead.h"
Expand Down
1 change: 0 additions & 1 deletion test/tags/test9.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include <matroska/KaxBlock.h>
#include <matroska/KaxCluster.h>
#include <matroska/KaxCues.h>
#include <matroska/KaxInfoData.h>
#include <matroska/KaxSeekHead.h>
#include <matroska/KaxSegment.h>
#include <matroska/KaxTracks.h>
Expand Down

0 comments on commit ab36bcf

Please sign in to comment.