Remove 'bmp24' argument from getVideoInfo call

Updated the extractThumbnail method to call addon.getVideoInfo without the 'bmp24' argument, aligning with the updated addon API.
This commit is contained in:
手瓜一十雪 2025-10-30 09:23:25 +08:00
parent d2c4f425c7
commit c1377e6de7

View File

@ -129,7 +129,7 @@ export class FFmpegAddonAdapter implements IFFmpegAdapter {
*/ */
async extractThumbnail(videoPath: string, thumbnailPath: string): Promise<void> { async extractThumbnail(videoPath: string, thumbnailPath: string): Promise<void> {
const addon = this.ensureAddon(); const addon = this.ensureAddon();
const info = await addon.getVideoInfo(videoPath, 'bmp24'); const info = await addon.getVideoInfo(videoPath);
// 将缩略图写入文件 // 将缩略图写入文件
await writeFile(thumbnailPath, info.image); await writeFile(thumbnailPath, info.image);