1
0
Fork 0
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:
Jeff Schiller 2023-02-01 21:47:01 -08:00
parent 726feee48f
commit a24524e772
4 changed files with 53 additions and 17 deletions

View file

@ -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"');
});
});
});