mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 11:54:01 +00:00
Include the information about the keyframe and discardable flags for simple blocks.
This commit is contained in:
parent
29ae58b2ac
commit
65184bdd78
@ -1688,12 +1688,18 @@ def_handle2(simple_block,
|
|||||||
char adler[100];
|
char adler[100];
|
||||||
uint64_t timecode;
|
uint64_t timecode;
|
||||||
float bduration;
|
float bduration;
|
||||||
|
string info;
|
||||||
KaxSimpleBlock &block = *static_cast<KaxSimpleBlock *>(l2);
|
KaxSimpleBlock &block = *static_cast<KaxSimpleBlock *>(l2);
|
||||||
|
|
||||||
block.SetParent(*cluster);
|
block.SetParent(*cluster);
|
||||||
timecode = block.GlobalTimecode() / 1000000;
|
timecode = block.GlobalTimecode() / 1000000;
|
||||||
show_element(l2, 2, "SimpleBlock (track number %u, %d frame(s), "
|
if (block.IsKeyframe())
|
||||||
|
info = "key, ";
|
||||||
|
if (block.IsDiscardable())
|
||||||
|
info += "discardable, ";
|
||||||
|
show_element(l2, 2, "SimpleBlock (%strack number %u, %d frame(s), "
|
||||||
"timecode %.3fs = " FMT_TIMECODEN ")",
|
"timecode %.3fs = " FMT_TIMECODEN ")",
|
||||||
|
info.c_str(),
|
||||||
block.TrackNum(), block.NumberFrames(),
|
block.TrackNum(), block.NumberFrames(),
|
||||||
(float)timecode / 1000.0,
|
(float)timecode / 1000.0,
|
||||||
ARG_TIMECODEN(block.GlobalTimecode()));
|
ARG_TIMECODEN(block.GlobalTimecode()));
|
||||||
|
Loading…
Reference in New Issue
Block a user