Skip to content

Commit

Permalink
fix devision / zero | Version bump 2.0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
peak3d committed Aug 23, 2017
1 parent 9bb3dc2 commit 299d9d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inputstream.adaptive/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="inputstream.adaptive"
version="2.0.11"
version="2.0.12"
name="InputStream Adaptive"
provider-name="peak3d">
<requires>@ADDON_DEPENDS@</requires>
Expand Down
4 changes: 3 additions & 1 deletion src/parser/DASHTree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -512,8 +512,10 @@ start(void *data, const char *el, const char **attr)
ts = atoi((const char*)*(attr + 1));
attr += 2;
}
if (ts)
if (ts && dur)
{
dash->current_representation_->duration_ = dur;
dash->current_representation_->timescale_ = ts;
dash->current_representation_->segments_.data.reserve(dash->estimate_segcount(
dash->current_representation_->duration_,
dash->current_representation_->timescale_));
Expand Down

0 comments on commit 299d9d3

Please sign in to comment.