Skip to content

Commit

Permalink
Merge pull request phoboslab#94 from AnimationMentor/fix-seekToFrame
Browse files Browse the repository at this point in the history
reset intraFrames in jsmpeg constructor
  • Loading branch information
phoboslab authored Jan 16, 2017
2 parents a0c96c2 + 8d0a1c8 commit 186666d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jsmpg.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ var jsmpeg = window.jsmpeg = function(url, opts) {
this.blockData = new Int32Array(64);
this.zeroBlockData = new Int32Array(64);
this.fillArray(this.zeroBlockData, 0);
this.intraFrames = [];

// Use WebGL for YCbCrToRGBA conversion if possible (much faster)
if (!opts.forceCanvas2D && this.initWebGL()) {
Expand Down

0 comments on commit 186666d

Please sign in to comment.