Skip to content

Commit

Permalink
fix: remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
hughfenghen committed Aug 19, 2024
1 parent ff62da9 commit 9bc7c2a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/few-moles-know.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@webav/av-cliper': patch
---

fix: remove debug code
1 change: 0 additions & 1 deletion packages/av-cliper/src/clips/img-clip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ export class ImgClip implements IClip {
};
}
const tt = time % this.#meta.duration;
// console.log(55555, time, tt, this.#meta);
return {
video: (
this.#frames.find(
Expand Down
6 changes: 0 additions & 6 deletions packages/av-cliper/src/clips/mp4-clip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,6 @@ function splitAudioSampleByTime(audioSamples: ExtMP4Sample[], time: number) {
}

// 兼容解码错误
let iii = 0;
function decodeGoP(
dec: VideoDecoder,
chunks: EncodedVideoChunk[],
Expand All @@ -1191,11 +1190,6 @@ function decodeGoP(
) {
let i = 0;
if (dec.state !== 'configured') return;
iii += 1;
if (iii > 2) {
console.log(5555);
throw Error('xxx');
}
for (; i < chunks.length; i++) dec.decode(chunks[i]);

// windows 某些设备 flush 可能不会被 resolved,所以不能 await flush
Expand Down

0 comments on commit 9bc7c2a

Please sign in to comment.