Skip to content

Commit

Permalink
fix #844
Browse files Browse the repository at this point in the history
  • Loading branch information
barbibulle committed Feb 17, 2024
1 parent c9f5d42 commit 76e3a3b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Source/C++/Core/Ap4Processor.cpp
Expand Up @@ -276,9 +276,14 @@ AP4_Processor::ProcessFragments(AP4_MoovAtom* moov,
AP4_Atom* child_atom = child_item->GetData();
if (child_atom->GetType() == AP4_ATOM_TYPE_TRUN) {
AP4_TrunAtom* trun = AP4_DYNAMIC_CAST(AP4_TrunAtom, child_atom);
truns.Append(trun);
if (trun) {
truns.Append(trun);
}
}
}
}
if (!truns.ItemCount()) {
continue;
}
AP4_Ordinal trun_index = 0;
AP4_Ordinal trun_sample_index = 0;
AP4_TrunAtom* trun = truns[0];
Expand Down

0 comments on commit 76e3a3b

Please sign in to comment.