adapt to new ffmpeg roll
This commit is contained in:
parent
affff4d6ec
commit
879afb1fb6
|
|
@ -48,8 +48,8 @@
|
|||
"revision": "1011",
|
||||
"installByDefault": true,
|
||||
"revisionOverrides": {
|
||||
"mac12": "1010",
|
||||
"mac12-arm64": "1010"
|
||||
"mac12": "1011",
|
||||
"mac12-arm64": "1011"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -150,13 +150,7 @@ async function downloadAndExtractBrotli(options: DownloadParams) {
|
|||
await pipeline(
|
||||
response,
|
||||
createBrotliDecompress(),
|
||||
tarFs.extract(options.browserDirectory, {
|
||||
map(header: { name: string }) {
|
||||
// manually-created ffmpeg archive has files nested in subdirectory
|
||||
if (header.name.startsWith('ffmpeg-'))
|
||||
header.name = header.name.substring(header.name.indexOf('/'));
|
||||
}
|
||||
})
|
||||
tarFs.extract(options.browserDirectory)
|
||||
);
|
||||
|
||||
if (downloadedBytes !== totalBytes)
|
||||
|
|
|
|||
Loading…
Reference in a new issue