Make Mp4Writer output compatible with Quicktime.
This commit is contained in:
parent
bc5d27ed90
commit
8e7383be05
1 changed files with 8 additions and 0 deletions
|
@ -378,6 +378,14 @@ final class Mp4Writer extends DefaultBoxes implements SampleSink {
|
|||
return mdhd;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Box createTkhd(StreamingTrack streamingTrack) {
|
||||
TrackHeaderBox tkhd = (TrackHeaderBox) super.createTkhd(streamingTrack);
|
||||
tkhd.setEnabled(true);
|
||||
tkhd.setInMovie(true);
|
||||
return tkhd;
|
||||
}
|
||||
|
||||
private class Mdat implements Box {
|
||||
final ArrayList<StreamingSample> samples;
|
||||
long size;
|
||||
|
|
Loading…
Add table
Reference in a new issue