tkhd flags should equal 7
The flags for a tkhd should be the default value of seven (track_enabled, track_in_movie, track_in_preview).
Showing
2 changed files
with
2 additions
and
1 deletions
... | @@ -345,7 +345,7 @@ styp = function() { | ... | @@ -345,7 +345,7 @@ styp = function() { |
345 | tkhd = function(track) { | 345 | tkhd = function(track) { |
346 | return box(types.tkhd, new Uint8Array([ | 346 | return box(types.tkhd, new Uint8Array([ |
347 | 0x00, // version 0 | 347 | 0x00, // version 0 |
348 | 0x00, 0x00, 0x00, // flags | 348 | 0x00, 0x00, 0x07, // flags |
349 | 0x00, 0x00, 0x00, 0x00, // creation_time | 349 | 0x00, 0x00, 0x00, 0x00, // creation_time |
350 | 0x00, 0x00, 0x00, 0x00, // modification_time | 350 | 0x00, 0x00, 0x00, 0x00, // modification_time |
351 | (track.id & 0xFF000000) >> 24, | 351 | (track.id & 0xFF000000) >> 24, | ... | ... |
... | @@ -66,6 +66,7 @@ test('generates a moov', function() { | ... | @@ -66,6 +66,7 @@ test('generates a moov', function() { |
66 | tkhd = boxes[0].boxes[1].boxes[0]; | 66 | tkhd = boxes[0].boxes[1].boxes[0]; |
67 | equal(tkhd.type, 'tkhd', 'generated a tkhd'); | 67 | equal(tkhd.type, 'tkhd', 'generated a tkhd'); |
68 | equal(tkhd.trackId, 7, 'wrote the track id'); | 68 | equal(tkhd.trackId, 7, 'wrote the track id'); |
69 | deepEqual(tkhd.flags, new Uint8Array([0, 0, 7]), 'flags should equal 7'); | ||
69 | equal(tkhd.duration, 100, 'wrote duration into the track header'); | 70 | equal(tkhd.duration, 100, 'wrote duration into the track header'); |
70 | equal(tkhd.width, 600, 'wrote width into the track header'); | 71 | equal(tkhd.width, 600, 'wrote width into the track header'); |
71 | equal(tkhd.height, 300, 'wrote height into the track header'); | 72 | equal(tkhd.height, 300, 'wrote height into the track header'); | ... | ... |
-
Please register or sign in to post a comment