File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -127,8 +127,7 @@ export function getFullMIMEString(info) {
127127 case 'opus' : codecFrags . add ( 'opus' ) ; break ;
128128 // I'm going off of what Chromium calls this one, with the dash.
129129 case 'ac3' : codecFrags . add ( 'ac-3' ) ; break ;
130- // It seems to be "fLaC".
131- case 'flac' : codecFrags . add ( stream . codec_tag_string ) ; break ;
130+ case 'flac' : codecFrags . add ( 'flac' ) ; break ;
132131 default :
133132 throw `Could not handle audio codec_name ${ stream . codec_name } , ` +
134133 `codec_tag_string ${ stream . codec_tag_string } for file ${ info . format . filename } yet. ` +
Original file line number Diff line number Diff line change @@ -360,7 +360,7 @@ describe('codecs test suite', () => {
360360 info . streams [ 0 ] . codec_name = 'flac' ;
361361 expect ( getFullMIMEString ( info ) )
362362 . to . be . a ( 'string' )
363- . and . equals ( 'audio/mp4; codecs="fLaC "' ) ;
363+ . and . equals ( 'audio/mp4; codecs="flac "' ) ;
364364 } ) ;
365365
366366 it ( 'video/mp4 handles fLaC' , ( ) => {
@@ -373,7 +373,7 @@ describe('codecs test suite', () => {
373373 } ) ;
374374 expect ( getFullMIMEString ( vInfo ) )
375375 . to . be . a ( 'string' )
376- . and . equals ( 'video/mp4; codecs="fLaC "' ) ;
376+ . and . equals ( 'video/mp4; codecs="flac "' ) ;
377377
378378 } ) ;
379379 } ) ;
You can’t perform that action at this time.
0 commit comments