mirror of
https://github.com/codedread/bitjs
synced 2025-10-04 01:59:15 +02:00
Release v1.07: Add MPEG2 video codec support.
This commit is contained in:
parent
726feee48f
commit
a24524e772
4 changed files with 53 additions and 17 deletions
|
@ -354,4 +354,25 @@ describe('codecs test suite', () => {
|
|||
.and.equals('audio/webm; codecs="opus"');
|
||||
});
|
||||
});
|
||||
|
||||
describe('MPEG2', () => {
|
||||
/** @type {ProbeInfo} */
|
||||
let info;
|
||||
|
||||
beforeEach(() => {
|
||||
info = {
|
||||
format: { format_name: 'matroska,webm' },
|
||||
streams: [{
|
||||
codec_type: 'video',
|
||||
codec_name: 'mpeg2video',
|
||||
}],
|
||||
};
|
||||
});
|
||||
|
||||
it('detects mpeg2video', () => {
|
||||
expect(getFullMIMEString(info))
|
||||
.to.be.a('string')
|
||||
.and.equals('video/webm; codecs="mpeg2video"');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue