Skip to content
Permalink
Browse files

fix for #183

  • Loading branch information...
barbibulle committed Sep 9, 2017
1 parent be7185f commit 2f267f89f957088197f4b1fc254632d1645b415d
Showing with 4 additions and 2 deletions.
  1. +4 −2 Source/C++/Core/Ap4AtomSampleTable.cpp
@@ -140,8 +140,10 @@ AP4_AtomSampleTable::GetSample(AP4_Ordinal index,
AP4_UI32 cts_offset = 0;
AP4_UI64 dts = 0;
AP4_UI32 duration = 0;
result = m_SttsAtom->GetDts(index, dts, &duration);
if (AP4_FAILED(result)) return result;
if (m_SttsAtom) {
result = m_SttsAtom->GetDts(index, dts, &duration);
if (AP4_FAILED(result)) return result;
}
sample.SetDuration(duration);
sample.SetDts(dts);
if (m_CttsAtom == NULL) {

0 comments on commit 2f267f8

Please sign in to comment.
You can’t perform that action at this time.