Skip to content

Commit

Permalink
- added automatic check to show all bytes for all iTMF data except co…
Browse files Browse the repository at this point in the history
…vr.data .
  • Loading branch information
Kona8lend authored and Kona8lend committed May 27, 2009
1 parent 1f53d0e commit 6d300aa
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/mp4property.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -624,10 +624,26 @@ void MP4BytesProperty::Dump(FILE* pFile, uint8_t indent,
return;
}

// specialization for ilst item data always show all bytes except for covr
bool showall = false;
if( m_pParentAtom ) {
MP4Atom* const datac = m_pParentAtom->GetParentAtom(); // data container
if( datac ) {
MP4Atom* const datacc = datac->GetParentAtom();
if( datacc &&
ATOMID( datacc->GetType() ) == ATOMID( "ilst" ) &&
ATOMID( datac->GetType() ) != ATOMID( "covr" ) )
{
showall = true;
}
}
}

uint32_t adjsize;
bool supressed;

if( size < 128 ||
if( showall ||
size < 128 ||
!m_pParentAtom ||
!m_pParentAtom->GetFile() ||
(m_pParentAtom->GetFile()->GetVerbosity() & MP4_DETAILS_TABLE) )
Expand Down

0 comments on commit 6d300aa

Please sign in to comment.