Skip to content

Commit

Permalink
Merge pull request #13 from TannerRogalsky/gh-pages-large-files
Browse files Browse the repository at this point in the history
GitHub Pages large files
  • Loading branch information
buzz committed Sep 23, 2017
2 parents c0716a3 + e1b6adc commit 87dccc3
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 13 deletions.
45 changes: 33 additions & 12 deletions js/mediainfo.js

Large diffs are not rendered by default.

Binary file modified js/mediainfo.js.mem
Binary file not shown.
14 changes: 13 additions & 1 deletion js/mediainfopage.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,19 @@ $(function() {
var chunk = new Uint8Array(e.target.result);
l = chunk.length;
state = mi.open_buffer_continue(chunk, l);
seekTo = mi.open_buffer_continue_goto_get();

var seekTo = -1;
var seekToLow = mi.open_buffer_continue_goto_get_lower();
var seekToHigh = mi.open_buffer_continue_goto_get_upper();

if (seekToLow == -1 && seekToHigh == -1) {
seekTo = -1;
} else if (seekToLow < 0) {
seekTo = seekToLow + 4294967296 + (seekToHigh * 4294967296);
} else {
seekTo = seekToLow + (seekToHigh * 4294967296);
}

if(seekTo === -1){
offset += l;
}else{
Expand Down

0 comments on commit 87dccc3

Please sign in to comment.