@@ -264,7 +264,7 @@ function appendMediaBlockFields(yaml: string, content: SdsContentValue, block: M
264264` ;
265265 yaml += `${ fieldIndent } bit-depth: ${ content . audio [ 'bit-depth' ] }
266266` ;
267- yaml += `${ fieldIndent } audio- channels: ${ content . audio [ 'audio- channels' ] }
267+ yaml += `${ fieldIndent } channels: ${ content . audio [ 'channels' ] }
268268` ;
269269 if ( content . audio . format ) {
270270 yaml += `${ fieldIndent } format: ${ content . audio . format }
@@ -372,7 +372,7 @@ export function parseMetadataString(text: string, options: ParseMetadataOptions
372372 currentContent . image = { pixel_format : 'RGB888' , width : 0 , height : 0 , stride_bytes : 0 } ;
373373 } else if ( trimmed === '- audio:' ) {
374374 inAudio = true ;
375- currentContent . audio = { 'sample-frequency' : 0 , 'bit-depth' : 16 , 'audio- channels' : 1 } ;
375+ currentContent . audio = { 'sample-frequency' : 0 , 'bit-depth' : 16 , 'channels' : 1 } ;
376376 } else if ( trimmed === '- video:' ) {
377377 inVideo = true ;
378378 currentContent . video = { pixel_format : 'RGB888' , width : 0 , height : 0 , fps : 0 } ;
@@ -393,7 +393,7 @@ export function parseMetadataString(text: string, options: ParseMetadataOptions
393393 inAudio = true ;
394394 inImage = false ;
395395 inVideo = false ;
396- currentContent . audio = { 'sample-frequency' : 0 , 'bit-depth' : 16 , 'audio- channels' : 1 } ;
396+ currentContent . audio = { 'sample-frequency' : 0 , 'bit-depth' : 16 , 'channels' : 1 } ;
397397 continue ;
398398 }
399399 if ( trimmed === 'video:' ) {
@@ -424,8 +424,8 @@ export function parseMetadataString(text: string, options: ParseMetadataOptions
424424 currentContent . audio [ 'sample-frequency' ] = parseInt ( trimmed . replace ( 'sample-frequency:' , '' ) . trim ( ) , 10 ) ;
425425 } else if ( trimmed . startsWith ( 'bit-depth:' ) ) {
426426 currentContent . audio [ 'bit-depth' ] = parseInt ( trimmed . replace ( 'bit-depth:' , '' ) . trim ( ) , 10 ) ;
427- } else if ( trimmed . startsWith ( 'audio- channels:' ) ) {
428- currentContent . audio [ 'audio- channels' ] = parseInt ( trimmed . replace ( 'audio- channels:' , '' ) . trim ( ) , 10 ) ;
427+ } else if ( trimmed . startsWith ( 'channels:' ) ) {
428+ currentContent . audio [ 'channels' ] = parseInt ( trimmed . replace ( 'channels:' , '' ) . trim ( ) , 10 ) ;
429429 } else if ( trimmed . startsWith ( 'format:' ) ) {
430430 currentContent . audio [ 'format' ] = extractYamlValue ( trimmed . replace ( 'format:' , '' ) . trim ( ) ) ;
431431 }
0 commit comments