Skip to content

Commit

Permalink
Merge pull request #243 from Yukiniro/tslpo2r2
Browse files Browse the repository at this point in the history
fix: encoder1 was not closed correctly
  • Loading branch information
hughfenghen authored Aug 16, 2024
2 parents 47e1385 + 82da38a commit 588df76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/av-cliper/src/mp4-utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ function encodeVideoTrack(
},
close: () => {
if (encoder0.state === 'configured') encoder0.close();
if (encoder1.state === 'configured') encoder1.flush();
if (encoder1.state === 'configured') encoder1.close();
},
};
}
Expand Down

0 comments on commit 588df76

Please sign in to comment.