Skip to content

Commit

Permalink
Reset all sampletable data before parsing
Browse files Browse the repository at this point in the history
Rewind all existing bytebuffers.

Change-Id: I1626ee2ecd4418951e358e61f510ab7bad2b567d
  • Loading branch information
Eric Johansson authored and Jimmy Dahlqvist committed Mar 6, 2015
1 parent fee605f commit a1715d2
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,14 @@ public boolean buildSampleTable() {
mStscData.rewind();
mStcoData.rewind();

if (mStssData != null) {
mStssData.rewind();
}

if (mCttsData != null) {
mCttsData.rewind();
}

// stsz data
mStszData.getInt(); // version and flags
int sampleSize = mStszData.getInt(); // sample_size
Expand Down

0 comments on commit a1715d2

Please sign in to comment.