浏览代码

reset intraFrames in jsmpeg constructor

Ben Boyle 9 年前
父节点
当前提交
8d0a1c8d52
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      jsmpg.js

+ 1 - 0
jsmpg.js 查看文件

@@ -42,6 +42,7 @@ var jsmpeg = window.jsmpeg = function( url, opts ) {
42 42
 	this.blockData = new Int32Array(64);
43 43
 	this.zeroBlockData = new Int32Array(64);
44 44
 	this.fillArray(this.zeroBlockData, 0);
45
+	this.intraFrames = [];
45 46
 
46 47
 	// use WebGL for YCbCrToRGBA conversion if possible (much faster)
47 48
 	if( !opts.forceCanvas2D && this.initWebGL() ) {