Skip to content

Commit

Permalink
chore: remove deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
hughfenghen committed Jul 23, 2024
1 parent 23ba479 commit 3cb8c87
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions packages/av-cliper/src/mp4-utils/mp4box-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,21 +94,6 @@ function getESDSBoxFromMP4File(file: MP4File, codec = 'mp4a') {
return mp4aBox?.esds;
}

export function sample2ChunkOpts(s: {
is_sync: boolean;
cts: number;
timescale: number;
duration: number;
data: ArrayBuffer | ArrayBufferView;
}): EncodedAudioChunkInit | EncodedVideoChunkInit {
return {
type: (s.is_sync ? 'key' : 'delta') as EncodedVideoChunkType,
timestamp: (1e6 * s.cts) / s.timescale,
duration: (1e6 * s.duration) / s.timescale,
data: s.data,
};
}

// 解决封装层音频信息标识错误,导致解码异常
function parseAudioInfo4ESDSBox(esds: ESDSBoxParser) {
const decoderConf = esds.esd.descs[0]?.descs[0];
Expand Down

0 comments on commit 3cb8c87

Please sign in to comment.