]> granicus.if.org Git - libmatroska/commitdiff
Do not allow writing KaxTrackTimecodeScale anymore no-trackscale
authorSteve Lhomme <robux4@ycbcr.xyz>
Sun, 6 Sep 2020 07:37:16 +0000 (09:37 +0200)
committerSteve Lhomme <robux4@ycbcr.xyz>
Sun, 6 Sep 2020 07:37:29 +0000 (09:37 +0200)
This is deprecated in v3 and likely never worked as it requires improper (scaled)
muxing or demuxing needs a growing buffer to counter the timestamps shifts
between tracks.

TrackAttachmentLink is another element that was allowed until Matroska v3 but
is not allowed to be written anymore.

matroska/KaxSemantic.h
src/KaxSemantic.cpp

index a59a38ccffc99a7677f10f678923e1766d9823ac..a5a30a59791ea788247028dde13b73be8e5fd33a 100644 (file)
@@ -249,6 +249,8 @@ DECLARE_MKX_UINTEGER(KaxTrackDefaultDecodedFieldDuration)
 };
 
 DECLARE_MKX_FLOAT(KaxTrackTimecodeScale)
+public:
+  filepos_t RenderData(IOCallback & output, bool bForceRender, bool bSaveDefault);
 };
 
 DECLARE_MKX_SINTEGER(KaxTrackOffset)
index f58be604451049d4c31c8fcfa511111b27be5dc7..c94754f4b2a9958ab9c8f8ebe953a1ebbc718c83 100644 (file)
@@ -776,6 +776,11 @@ filepos_t KaxEncryptedBlock::RenderData(IOCallback & /* output */, bool /* bForc
   return 0;
 }
 
+filepos_t KaxTrackTimecodeScale::RenderData(IOCallback & /* output */, bool /* bForceRender */, bool /* bSaveDefault */) {
+  assert(false); // no you are not allowed to use this element !
+  return 0;
+}
+
 filepos_t KaxTrackOffset::RenderData(IOCallback & /* output */, bool /* bForceRender */, bool /* bSaveDefault */) {
   assert(false); // no you are not allowed to use this element !
   return 0;