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.
Showing
1 changed file
with
2 additions
and
4 deletions
... | @@ -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 | } | ... | ... |
-
Please register or sign in to post a comment