File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
packages/av-cliper/src/clips Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -1332,26 +1332,6 @@ function decodeGoP(
13321332 } ) ;
13331333}
13341334
1335- // 获取起始位置的 SEI 长度
1336- function seiLenOfStart (
1337- u8Arr : Uint8Array ,
1338- type : MP4Sample [ 'description' ] [ 'type' ] ,
1339- ) {
1340- if ( type !== 'avc1' && type !== 'hvc1' ) return 0 ;
1341-
1342- const dv = new DataView ( u8Arr . buffer ) ;
1343- if ( type === 'avc1' && ( dv . getUint8 ( 4 ) & 0x1f ) === 6 ) {
1344- return dv . getUint32 ( 0 ) + 4 ;
1345- }
1346- if ( type === 'hvc1' ) {
1347- const nalUnitType = ( dv . getUint8 ( 4 ) >> 1 ) & 0x3f ;
1348- if ( nalUnitType === 39 || nalUnitType === 40 ) {
1349- return dv . getUint32 ( 0 ) + 4 ;
1350- }
1351- }
1352- return 0 ;
1353- }
1354-
13551335function idrNALUOffset (
13561336 u8Arr : Uint8Array ,
13571337 type : MP4Sample [ 'description' ] [ 'type' ] ,
You can’t perform that action at this time.
0 commit comments