mirror of
https://github.com/codedread/bitjs
synced 2025-10-03 09:39:16 +02:00
1.0.6: Return 'vp9' for the video codec in getFullMIMEString(). Also move the annoying warning in deprecated archive.js.
This commit is contained in:
parent
d3b8765b42
commit
726feee48f
6 changed files with 16 additions and 14 deletions
|
@ -261,11 +261,7 @@ describe('codecs test suite', () => {
|
|||
info.streams[0].level = -99; // I'm not sure what ffprobe means by this.
|
||||
expect(getFullMIMEString(info))
|
||||
.to.be.a('string')
|
||||
.and.satisfy(s => s.startsWith('video/webm; codecs="vp09.'))
|
||||
.and.satisfy(s => {
|
||||
const matches = s.match(/vp09\.[0-9]{2}\.([0-9A-F]{2})\.[0-9A-F]{2}/);
|
||||
return matches && matches.length === 2 && matches[1] === 'FF';
|
||||
});
|
||||
.and.equals('video/webm; codecs="vp9"');
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue