You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
2.5 KiB

!function t(e,r,n){function i(a,u){if(!r[a]){if(!e[a]){var l="function"==typeof require&&require;if(!u&&l)return l(a,!0);if(s)return s(a,!0);var f=new Error("Cannot find module '"+a+"'");throw f.code="MODULE_NOT_FOUND",f}var h=r[a]={exports:{}};e[a][0].call(h.exports,(function(t){return i(e[a][1][t]||t)}),h,h.exports,t,e,r,n)}return r[a].exports}for(var s="function"==typeof require&&require,a=0;a<n.length;a++)i(n[a]);return i}({1:[function(t,e,r){(function(t){"use strict";function e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var r=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.frameList=null,this.stream=null}var r,n,i;return r=t,(n=[{key:"release",value:function(){null!==this.frameList&&(this.frameList.length=0),this.stream=null}},{key:"pushFrameRet",value:function(t){return!(!t||null==t||null==t||(this.frameList&&null!=this.frameList&&null!=this.frameList||(this.frameList=[]),this.frameList.push(t),0))}},{key:"nextFrame",value:function(){return!this.frameList&&null==this.frameList||null==this.frameList&&this.frameList.length<1?null:this.frameList.shift()}},{key:"clearFrameRet",value:function(){this.frameList=null}},{key:"setStreamRet",value:function(t){this.stream=t}},{key:"getStreamRet",value:function(){return this.stream}},{key:"appendStreamRet",value:function(t){if(!t||void 0===t||null==t)return!1;if(!this.stream||void 0===this.stream||null==this.stream)return this.stream=t,!0;var e=this.stream.length,r=t.length,n=new Uint8Array(e+r);return n.set(this.stream,0),n.set(t,e),this.stream=n,!0}},{key:"subBuf",value:function(t,e){var r=new Uint8Array(this.stream.subarray(t,e+1));return this.stream=new Uint8Array(this.stream.subarray(e+1)),r}},{key:"nextNalu",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(null==this.stream||this.stream.length<=4)return!1;for(var e=-1,r=0;r<this.stream.length;r++){if(r+5>=this.stream.length)return-1!=e&&this.subBuf(e,this.stream.length-1);if(0==this.stream[r]&&0==this.stream[r+1]&&1==this.stream[r+2]||0==this.stream[r]&&0==this.stream[r+1]&&0==this.stream[r+2]&&1==this.stream[r+3]){var n=r;if(r+=3,-1==e)e=n;else{if(t<=1)return this.subBuf(e,n-1);t-=1}}}return!1}}])&&e(r.prototype,n),i&&e(r,i),t}();t.RawParserModule=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1]);