@@ -276,6 +276,27 @@ describe('codecs test suite', () => {
276276 } ) ;
277277 } ) ;
278278
279+ describe ( 'MPEG2' , ( ) => {
280+ /** @type {ProbeInfo } */
281+ let info ;
282+
283+ beforeEach ( ( ) => {
284+ info = {
285+ format : { format_name : 'matroska,webm' } ,
286+ streams : [ {
287+ codec_type : 'video' ,
288+ codec_name : 'mpeg2video' ,
289+ } ] ,
290+ } ;
291+ } ) ;
292+
293+ it ( 'detects mpeg2video' , ( ) => {
294+ expect ( getFullMIMEString ( info ) )
295+ . to . be . a ( 'string' )
296+ . and . equals ( 'video/webm; codecs="mpeg2video"' ) ;
297+ } ) ;
298+ } ) ;
299+
279300 describe ( 'MP4A / AAC' , ( ) => {
280301 /** @type {ProbeInfo } */
281302 let info ;
@@ -355,24 +376,24 @@ describe('codecs test suite', () => {
355376 } ) ;
356377 } ) ;
357378
358- describe ( 'MPEG2 ' , ( ) => {
379+ describe ( 'AC-3 ' , ( ) => {
359380 /** @type {ProbeInfo } */
360381 let info ;
361382
362383 beforeEach ( ( ) => {
363384 info = {
364385 format : { format_name : 'matroska,webm' } ,
365386 streams : [ {
366- codec_type : 'video ' ,
367- codec_name : 'mpeg2video ' ,
387+ codec_type : 'audio ' ,
388+ codec_name : 'ac3 ' ,
368389 } ] ,
369390 } ;
370391 } ) ;
371392
372- it ( 'detects mpeg2video ' , ( ) => {
393+ it ( 'detects AC-3 ' , ( ) => {
373394 expect ( getFullMIMEString ( info ) )
374395 . to . be . a ( 'string' )
375- . and . equals ( 'video /webm; codecs="mpeg2video "' ) ;
396+ . and . equals ( 'audio /webm; codecs="ac-3 "' ) ;
376397 } ) ;
377398 } ) ;
378399} ) ;
0 commit comments