]> granicus.if.org Git - libmatroska/commitdiff
forbid writing TimeSlice, SliceLaceNumber and TrackAttachmentLink forbid-slices
authorSteve Lhomme <robux4@ycbcr.xyz>
Sun, 21 Oct 2018 13:10:55 +0000 (15:10 +0200)
committerSteve Lhomme <robux4@ycbcr.xyz>
Sun, 21 Oct 2018 13:10:55 +0000 (15:10 +0200)
matroska/KaxSemantic.h
src/KaxSemantic.cpp

index 65084fbe0eb7746f683e91fdd43c79d64ee77fbb..d4070dff4b590744548ac46c314b921216b3f9ac 100644 (file)
@@ -168,10 +168,14 @@ DECLARE_MKX_MASTER(KaxSlices)
 
 
 DECLARE_MKX_MASTER(KaxTimeSlice)
+public:
+  filepos_t RenderData(IOCallback & output, bool bForceRender, bool bSaveDefault);
 };
 
 
 DECLARE_MKX_UINTEGER(KaxSliceLaceNumber)
+public:
+  filepos_t RenderData(IOCallback & output, bool bForceRender, bool bSaveDefault);
 };
 
 #if MATROSKA_VERSION >= 2
@@ -289,6 +293,8 @@ DECLARE_MKX_UNISTRING(KaxCodecName)
 };
 
 DECLARE_MKX_UINTEGER(KaxTrackAttachmentLink)
+public:
+  filepos_t RenderData(IOCallback & output, bool bForceRender, bool bSaveDefault);
 };
 
 #if MATROSKA_VERSION >= 2
index 4af2557adc34bed6f8cdc74e48158213bd712665..a4e24f0e5aac5b121c25f95da495d639a3c4684e 100644 (file)
@@ -803,6 +803,16 @@ filepos_t KaxReferenceVirtual::RenderData(IOCallback & /* output */, bool /* bFo
   return 0;
 }
 
+filepos_t KaxTimeSlice::RenderData(IOCallback & /* output */, bool /* bForceRender */, bool /* bSaveDefault */) {
+  assert(false); // no you are not allowed to use this element !
+  return 0;
+}
+
+filepos_t KaxSliceLaceNumber::RenderData(IOCallback & /* output */, bool /* bForceRender */, bool /* bSaveDefault */) {
+  assert(false); // no you are not allowed to use this element !
+  return 0;
+}
+
 filepos_t KaxSliceFrameNumber::RenderData(IOCallback & /* output */, bool /* bForceRender */, bool /* bSaveDefault */) {
   assert(false); // no you are not allowed to use this element !
   return 0;
@@ -838,6 +848,11 @@ filepos_t KaxTrackOffset::RenderData(IOCallback & /* output */, bool /* bForceRe
   return 0;
 }
 
+filepos_t KaxTrackAttachmentLink::RenderData(IOCallback & /* output */, bool /* bForceRender */, bool /* bSaveDefault */) {
+  assert(false); // no you are not allowed to use this element !
+  return 0;
+}
+
 filepos_t KaxCodecSettings::RenderData(IOCallback & /* output */, bool /* bForceRender */, bool /* bSaveDefault */) {
   assert(false); // no you are not allowed to use this element !
   return 0;