Skip to content

Commit

Permalink
Merge pull request #926 from thinkski/master
Browse files Browse the repository at this point in the history
fix #925
  • Loading branch information
barbibulle committed Mar 22, 2024
2 parents 61639cc + 4d9da52 commit ea90ccd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Source/C++/Core/Ap4ElstAtom.cpp
Expand Up @@ -147,8 +147,13 @@ AP4_ElstAtom::InspectFields(AP4_AtomInspector& inspector)
{
inspector.AddField("entry_count", m_Entries.ItemCount());
for (AP4_Ordinal i=0; i<m_Entries.ItemCount(); i++) {
inspector.AddField("entry/segment duration", (AP4_UI32)m_Entries[i].m_SegmentDuration);
inspector.AddField("entry/media time", (AP4_SI32)m_Entries[i].m_MediaTime);
if (1 == m_Version) {
inspector.AddField("entry/segment duration", (AP4_UI64)m_Entries[i].m_SegmentDuration);
inspector.AddField("entry/media time", (AP4_SI64)m_Entries[i].m_MediaTime);
} else {
inspector.AddField("entry/segment duration", (AP4_UI32)m_Entries[i].m_SegmentDuration);
inspector.AddField("entry/media time", (AP4_SI32)m_Entries[i].m_MediaTime);
}
inspector.AddField("entry/media rate", (AP4_UI16)m_Entries[i].m_MediaRate);
}

Expand Down

0 comments on commit ea90ccd

Please sign in to comment.