vmhd should have flags value of 1
The flags byte sequence should always be 0x00 00 01 for vmhd boxes.
Showing
2 changed files
with
2 additions
and
2 deletions
... | @@ -122,7 +122,7 @@ DataView = window.DataView; | ... | @@ -122,7 +122,7 @@ DataView = window.DataView; |
122 | STTS = STCO; | 122 | STTS = STCO; |
123 | VMHD = new Uint8Array([ | 123 | VMHD = new Uint8Array([ |
124 | 0x00, // version | 124 | 0x00, // version |
125 | 0x00, 0x00, 0x00, // flags | 125 | 0x00, 0x00, 0x01, // flags |
126 | 0x00, 0x00, // graphicsmode | 126 | 0x00, 0x00, // graphicsmode |
127 | 0x00, 0x00, | 127 | 0x00, 0x00, |
128 | 0x00, 0x00, | 128 | 0x00, 0x00, | ... | ... |
... | @@ -92,7 +92,7 @@ test('generates a moov', function() { | ... | @@ -92,7 +92,7 @@ test('generates a moov', function() { |
92 | type: 'vmhd', | 92 | type: 'vmhd', |
93 | size: 20, | 93 | size: 20, |
94 | version: 0, | 94 | version: 0, |
95 | flags: new Uint8Array([0, 0, 0]), | 95 | flags: new Uint8Array([0, 0, 1]), |
96 | graphicsmode: 0, | 96 | graphicsmode: 0, |
97 | opcolor: new Uint16Array([0, 0, 0]) | 97 | opcolor: new Uint16Array([0, 0, 0]) |
98 | }, minf.boxes[0], 'generates a vhmd'); | 98 | }, minf.boxes[0], 'generates a vhmd'); | ... | ... |
-
Please register or sign in to post a comment