Make Mp4Writer output compatible with Quicktime.

This commit is contained in:
Nicholas Tinsley 2024-01-17 19:06:50 -05:00 committed by Greyson Parrelli
parent bc5d27ed90
commit 8e7383be05

View file

@ -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;