Skip to content

Commit

Permalink
Merge pull request #68 from stefansaraev/ism-timescale
Browse files Browse the repository at this point in the history
[fix] set default TimeScale
  • Loading branch information
peak3d committed Sep 10, 2017
2 parents 8ee4d19 + 61675e5 commit 78df333
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/parser/SmoothTree.cpp
Expand Up @@ -236,8 +236,10 @@ start(void *data, const char *el, const char **attr)
}
attr += 2;
}
if (timeScale)
dash->overallSeconds_ = duration / timeScale;
if (!timeScale)
timeScale = 10000000; //Defalt Smmoothstream frequency (10Khz)

dash->overallSeconds_ = duration / timeScale;
dash->currentNode_ |= SmoothTree::SSMNODE_SSM;
dash->minPresentationOffset = ~0ULL;
dash->base_time_ = ~0ULL;
Expand Down

0 comments on commit 78df333

Please sign in to comment.