Skip to content

Commit

Permalink
AdaptveTree: relink aadpset in psshset if stream was merged to avoud …
Browse files Browse the repository at this point in the history
…access to erased adpsets
  • Loading branch information
peak3d committed Jul 27, 2018
1 parent 4e95976 commit 5061a1a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/common/AdaptiveTree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@ namespace adaptive
{
if ((*ba)->type_ == AUDIO && ba + 1 != ea && AdaptationSet::mergeable(*ba, *(ba + 1)))
{
for (size_t i(1); i < psshSets_.size(); ++i)
if (psshSets_[i].adaptation_set_ == *ba)
psshSets_[i].adaptation_set_ = *(ba + 1);

(*(ba + 1))->repesentations_.insert((*(ba + 1))->repesentations_.end(), (*ba)->repesentations_.begin(), (*ba)->repesentations_.end());
(*ba)->repesentations_.clear();
ba = (*bp)->adaptationSets_.erase(ba);
Expand Down

0 comments on commit 5061a1a

Please sign in to comment.