d509c314 by David LaPalomento

vmhd should have flags value of 1

The flags byte sequence should always be 0x00 00 01 for vmhd boxes.
1 parent 3f8b1ce8
...@@ -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');
......