cfb6c419 by David LaPalomento

Use 3-byte end object tag

Drop the extra null byte when closing an "ecmascript array" in the metadata tag. The spec specifies a 3 byte tag and I'm not sure how the 4-byte version managed to work in practice. This makes the output differ significantly from the original actionscript version of the code but the converted video still plays back without any issues.
1 parent e8e92409
...@@ -268,10 +268,8 @@ hls.FlvTag = function(type, extraData) { ...@@ -268,10 +268,8 @@ hls.FlvTag = function(type, extraData) {
268 this.position++; 268 this.position++;
269 this.view.setUint32(this.position, adHoc); 269 this.view.setUint32(this.position, adHoc);
270 this.position = this.length; 270 this.position = this.length;
271 // this.bytes.set([0, 0, 9], this.position); 271 this.bytes.set([0, 0, 9], this.position);
272 // this.position += 3; 272 this.position += 3; // End Data Tag
273 this.view.setUint32(this.position, 0x09); // End Data Tag
274 this.position += 4;
275 this.length = this.position; 273 this.length = this.position;
276 break; 274 break;
277 } 275 }
......