Skip to content

Commit

Permalink
fix: detailed defaultSampleFlags Info for tfhd box
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbee committed Jan 5, 2021
1 parent 57a5713 commit 800acc8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions mp4/testdata/golden_1_frag_m4s_dump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
- trackID: 2
- defaultBaseIsMoof: true
- defaultSampleDuration: 3000
- defaultSampleFlags: 01010000
- defaultSampleFlags: 01010000 (isLeading=0 dependsOn=1 isDependedOn=0 hasRedundancy=0 padding=0 isNonSync=true degradationPriority=0)
[tfdt] size=16 version=0
- baseMediaDecodeTime: 0
[trun] size=144 version=1
Expand Down Expand Up @@ -45,7 +45,7 @@
- trackID: 2
- defaultBaseIsMoof: true
- defaultSampleDuration: 3000
- defaultSampleFlags: 01010000
- defaultSampleFlags: 01010000 (isLeading=0 dependsOn=1 isDependedOn=0 hasRedundancy=0 padding=0 isNonSync=true degradationPriority=0)
[tfdt] size=16 version=0
- baseMediaDecodeTime: 45000
[trun] size=140 version=1
Expand Down Expand Up @@ -77,7 +77,7 @@
- trackID: 2
- defaultBaseIsMoof: true
- defaultSampleDuration: 3000
- defaultSampleFlags: 01010000
- defaultSampleFlags: 01010000 (isLeading=0 dependsOn=1 isDependedOn=0 hasRedundancy=0 padding=0 isNonSync=true degradationPriority=0)
[tfdt] size=16 version=0
- baseMediaDecodeTime: 90000
[trun] size=144 version=1
Expand Down Expand Up @@ -110,7 +110,7 @@
- trackID: 2
- defaultBaseIsMoof: true
- defaultSampleDuration: 3000
- defaultSampleFlags: 01010000
- defaultSampleFlags: 01010000 (isLeading=0 dependsOn=1 isDependedOn=0 hasRedundancy=0 padding=0 isNonSync=true degradationPriority=0)
[tfdt] size=16 version=0
- baseMediaDecodeTime: 135000
[trun] size=140 version=1
Expand Down
3 changes: 2 additions & 1 deletion mp4/tfhd.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ func (t *TfhdBox) Info(w io.Writer, specificBoxLevels, indent, indentStep string
bd.write(" - defaultSampleSize: %d", t.DefaultSampleSize)
}
if t.HasDefaultSampleFlags() {
bd.write(" - defaultSampleFlags: %08x", t.DefaultSampleFlags)
bd.write(" - defaultSampleFlags: %08x (%s)", t.DefaultSampleFlags, DecodeSampleFlags(t.DefaultSampleFlags))

}
return bd.err
}

0 comments on commit 800acc8

Please sign in to comment.