Skip to content

Commit

Permalink
chore: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
hughfenghen committed Aug 12, 2024
1 parent 8475ab0 commit aa08c73
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/av-cliper/src/clips/mp4-clip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ class VideoFrameFinder {

// 缺少帧数据
if (
this.#decdoing ||
this.#decoding ||
(this.#outputFrameCnt < this.#inputChunkCnt && dec.decodeQueueSize > 0)
) {
if (performance.now() - aborter.st > 3e3) {
Expand All @@ -655,10 +655,10 @@ class VideoFrameFinder {
return this.#parseFrame(time, dec, aborter);
};

#decdoing = false;
#decoding = false;
#startDecode = async (dec: VideoDecoder) => {
if (this.#decdoing) return;
this.#decdoing = true;
if (this.#decoding) return;
this.#decoding = true;

// 启动解码任务,然后重试
let endIdx = this.#videoDecCusorIdx + 1;
Expand Down Expand Up @@ -699,7 +699,7 @@ class VideoFrameFinder {
}
}
this.#videoDecCusorIdx = endIdx;
this.#decdoing = false;
this.#decoding = false;
};

reset = (time?: number) => {
Expand Down

0 comments on commit aa08c73

Please sign in to comment.