Skip to content

Commit

Permalink
fix: parse audio timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
hughfenghen committed Dec 23, 2024
1 parent c70dd30 commit c6e4ebb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/polite-pots-protect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@webav/av-cliper': patch
---

fix: parse audio timeout
2 changes: 1 addition & 1 deletion packages/av-cliper/src/clips/mp4-clip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,7 @@ function createAudioChunksDecoder(
if (adec.state !== 'closed') adec.close();
},
get decoding() {
return inputCnt > outputCnt;
return inputCnt > outputCnt && adec.decodeQueueSize > 0;
},
get state() {
return adec.state;
Expand Down

0 comments on commit c6e4ebb

Please sign in to comment.