Skip to content

Commit f6842e3

Browse files
committed
chore: remove deprected code
1 parent 0f58eae commit f6842e3

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

packages/av-cliper/src/clips/mp4-clip.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff 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-
13551335
function idrNALUOffset(
13561336
u8Arr: Uint8Array,
13571337
type: MP4Sample['description']['type'],

0 commit comments

Comments
 (0)