Added sample_description_index to 'tfhd' box for DASH-IF IOP compatiblity.

Change-Id: I1bb24f3b3f258625ce6958d6510aab49bedbf719
This commit is contained in:
Thomas Inskip 2015-06-02 12:11:23 -07:00
parent b56f5a0edf
commit 581cb1fc4d
1 changed files with 3 additions and 1 deletions

View File

@ -77,7 +77,9 @@ Status Fragmenter::InitializeFragment(int64_t first_sample_dts) {
traf_->runs.clear();
traf_->runs.resize(1);
traf_->runs[0].flags = TrackFragmentRun::kDataOffsetPresentMask;
traf_->header.flags = TrackFragmentHeader::kDefaultBaseIsMoofMask;
traf_->header.sample_description_index = 1; // 1-based.
traf_->header.flags = TrackFragmentHeader::kDefaultBaseIsMoofMask |
TrackFragmentHeader::kSampleDescriptionIndexPresentMask;
fragment_duration_ = 0;
earliest_presentation_time_ = kInvalidTime;
first_sap_time_ = kInvalidTime;