Skip to content

Commit

Permalink
Merge remote-tracking branch 'robux4/single_context'
Browse files Browse the repository at this point in the history
  • Loading branch information
mbunkus committed Jan 24, 2024
2 parents 62036ad + 00337a8 commit 8632b21
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/KaxAttached.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ using namespace libebml;
namespace libmatroska {

KaxAttached::KaxAttached()
:EbmlMaster(KaxAttached::ClassInfos, EBML_CLASS_SEMCONTEXT(KaxAttached))
:EbmlMaster(KaxAttached::ClassInfos)
{
SetSizeLength(2); // mandatory min size support (for easier updating) (2^(7*2)-2 = 16Ko)
}
Expand Down
2 changes: 1 addition & 1 deletion src/KaxAttachments.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ using namespace libebml;
namespace libmatroska {

KaxAttachments::KaxAttachments()
:EbmlMaster(KaxAttachments::ClassInfos, EBML_CLASS_SEMCONTEXT(KaxAttachments))
:EbmlMaster(KaxAttachments::ClassInfos)
{
SetSizeLength(2); // mandatory min size support (for easier updating) (2^(7*2)-2 = 16Ko)
}
Expand Down
2 changes: 1 addition & 1 deletion src/KaxBlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ KaxInternalBlock::KaxInternalBlock(const KaxInternalBlock & ElementToClone)
} */

KaxBlockGroup::KaxBlockGroup()
:EbmlMaster(KaxBlockGroup::ClassInfos, EBML_CLASS_SEMCONTEXT(KaxBlockGroup))
:EbmlMaster(KaxBlockGroup::ClassInfos)
{}

static constexpr std::int64_t SignedVINT_Shift1 = (1 << ((7*1) - 1)) - 1;
Expand Down
2 changes: 1 addition & 1 deletion src/KaxCluster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ using namespace libebml;
namespace libmatroska {

KaxCluster::KaxCluster()
:EbmlMaster(KaxCluster::ClassInfos, EBML_CLASS_SEMCONTEXT(KaxCluster))
:EbmlMaster(KaxCluster::ClassInfos)
{}

KaxCluster::KaxCluster(const KaxCluster & ElementToClone)
Expand Down
2 changes: 1 addition & 1 deletion src/KaxSegment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ using namespace libebml;
namespace libmatroska {

KaxSegment::KaxSegment()
:EbmlMaster(KaxSegment::ClassInfos, EBML_CLASS_SEMCONTEXT(KaxSegment))
:EbmlMaster(KaxSegment::ClassInfos)
{
SetSizeLength(5); // mandatory min size support (for easier updating) (2^(7*5)-2 = 32Go)
SetSizeInfinite(); // by default a segment is big and the size is unknown in advance
Expand Down
2 changes: 1 addition & 1 deletion src/KaxSemantic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ DEFINE_SEMANTIC_ITEM(false, true, KaxTrickMasterTrackSegmentUID)
DEFINE_SEMANTIC_ITEM(false, true, KaxContentEncodings)
DEFINE_END_SEMANTIC(KaxTrackEntry)

DEFINE_MKX_MASTER_CONS(KaxTrackEntry, 0xAE, 1, KaxTracks, false, "TrackEntry", VERSION_ALL_MATROSKA)
DEFINE_MKX_MASTER(KaxTrackEntry, 0xAE, 1, KaxTracks, false, "TrackEntry", VERSION_ALL_MATROSKA)
DEFINE_MKX_UINTEGER(KaxTrackNumber, 0xD7, 1, KaxTrackEntry, "TrackNumber", VERSION_ALL_MATROSKA)
DEFINE_MKX_UINTEGER(KaxTrackUID, 0x73C5, 2, KaxTrackEntry, "TrackUID", VERSION_ALL_MATROSKA)
DEFINE_MKX_UINTEGER(KaxTrackType, 0x83, 1, KaxTrackEntry, "TrackType", VERSION_ALL_MATROSKA)
Expand Down
4 changes: 0 additions & 4 deletions src/KaxTracks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ using namespace libebml;

namespace libmatroska {

KaxTrackEntry::KaxTrackEntry()
:EbmlMaster(KaxTrackEntry::ClassInfos, EBML_CLASS_SEMCONTEXT(KaxTrackEntry))
{}

void KaxTrackEntry::EnableLacing(bool bEnable)
{
auto & myLacing = GetChild<KaxTrackFlagLacing>(*this);
Expand Down

0 comments on commit 8632b21

Please sign in to comment.