web/types/libav: replace "extension" with "format" in FileInfo

This commit is contained in:
wukko
2025-02-12 13:17:56 +06:00
parent c31c484894
commit ff62a4c2e6
3 changed files with 8 additions and 6 deletions

View File

@@ -33,7 +33,7 @@ export const createRemuxPipeline = (file: File) => {
],
output: {
type: file.type,
extension: file.name.split(".").pop(),
format: file.name.split(".").pop(),
},
},
}];
@@ -80,7 +80,7 @@ export const createSavePipeline = (info: CobaltLocalProcessingResponse) => {
output: {
// TODO: return mime type from api to avoid dragging a big ass package into web build
type: mime.getType(info.filename) || undefined,
extension: info.filename.split(".").pop(),
format: info.filename.split(".").pop(),
},
},
})