Make sure we can finalize the flv tag view
Showing
1 changed file
with
3 additions
and
0 deletions
... | @@ -298,6 +298,9 @@ hls.FlvTag = function(type, extraData) { | ... | @@ -298,6 +298,9 @@ hls.FlvTag = function(type, extraData) { |
298 | this.bytes[ 9] = 0; | 298 | this.bytes[ 9] = 0; |
299 | this.bytes[10] = 0; | 299 | this.bytes[10] = 0; |
300 | 300 | ||
301 | // Sometimes we're at the end of the view and have one slot to write a | ||
302 | // uint32, so, prepareWrite of count 4, since, view is uint8 | ||
303 | prepareWrite(this, 4); | ||
301 | this.view.setUint32(this.length, this.length); | 304 | this.view.setUint32(this.length, this.length); |
302 | this.length += 4; | 305 | this.length += 4; |
303 | this.position += 4; | 306 | this.position += 4; | ... | ... |
-
Please register or sign in to post a comment