Skip to content

Commit

Permalink
commit dist
Browse files Browse the repository at this point in the history
  • Loading branch information
tchakabam committed Jan 10, 2018
1 parent 204ec70 commit d275e03
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 15 deletions.
14 changes: 10 additions & 4 deletions dist/hls-demo.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/hls-demo.js.map

Large diffs are not rendered by default.

17 changes: 14 additions & 3 deletions dist/hls.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ var ErrorDetails = {
(function(root) {
/* jshint ignore:end */

var URL_REGEX = /^((?:[^\/;?#]+:)?)(\/\/[^\/\;?#]*)?(.*?)??(;.*?)?(\?.*?)?(#.*?)?$/;
var URL_REGEX = /^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/\;?#]*)?(.*?)??(;.*?)?(\?.*?)?(#.*?)?$/;
var FIRST_SEGMENT_REGEX = /^([^\/;?#]*)(.*)$/;
var SLASH_DOT_REGEX = /(?:\/|^)\.(?=\/)/g;
var SLASH_DOT_DOT_REGEX = /(?:\/|^)\.\.\/(?!\.\.\/).*?(?=\/)/g;
Expand All @@ -370,7 +370,7 @@ var ErrorDetails = {
// E.g
// With opts.alwaysNormalize = false (default, spec compliant)
// http://a.com/b/cd + /e/f/../g => http://a.com/e/f/../g
// With opts.alwaysNormalize = true (default, not spec compliant)
// With opts.alwaysNormalize = true (not spec compliant)
// http://a.com/b/cd + /e/f/../g => http://a.com/e/g
buildAbsoluteURL: function(baseURL, relativeURL, opts) {
opts = opts || {};
Expand Down Expand Up @@ -930,6 +930,17 @@ var FastAESKey = function () {
// CONCATENATED MODULE: ./src/crypt/aes-decryptor.js
function aes_decryptor__classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

// PKCS7
function removePadding(buffer) {
var outputBytes = buffer.byteLength;
var paddingBytes = outputBytes && new DataView(buffer).getUint8(outputBytes - 1);
if (paddingBytes) {
return buffer.slice(0, outputBytes - paddingBytes);
} else {
return buffer;
}
}

var AESDecryptor = function () {
function AESDecryptor() {
aes_decryptor__classCallCheck(this, AESDecryptor);
Expand Down Expand Up @@ -1195,7 +1206,7 @@ var AESDecryptor = function () {
offset = offset + 4;
}

return outputInt32.buffer;
return removePadding(outputInt32.buffer);
};

AESDecryptor.prototype.destroy = function destroy() {
Expand Down
2 changes: 1 addition & 1 deletion dist/hls.js.map

Large diffs are not rendered by default.

17 changes: 14 additions & 3 deletions dist/hls.light.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/hls.light.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/hls.light.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/hls.min.js

Large diffs are not rendered by default.

0 comments on commit d275e03

Please sign in to comment.