mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-23 09:59:54 +00:00
programs/sndfile-metadata-*.c : Minor cleanup.
Patch-from: Jan Stary <hans@stare.cz>
This commit is contained in:
parent
c1a09a5065
commit
21cfbcc491
@ -1,5 +1,5 @@
|
||||
/*
|
||||
** Copyright (C) 2008-2012 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
** Copyright (C) 2008-2014 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
** Copyright (C) 2008-2010 George Blood Audio
|
||||
**
|
||||
** All rights reserved.
|
||||
@ -77,7 +77,6 @@ main (int argc, char *argv [])
|
||||
exit (1) ;
|
||||
} ;
|
||||
|
||||
/* Get the time in case we need it later. */
|
||||
memset (&sfinfo, 0, sizeof (sfinfo)) ;
|
||||
if ((file = sf_open (filename, SFM_READ, &sfinfo)) == NULL)
|
||||
{ printf ("Error : Open of file '%s' failed : %s\n\n", filename, sf_strerror (file)) ;
|
||||
@ -102,9 +101,13 @@ static void
|
||||
usage_exit (const char *progname, int exit_code)
|
||||
{ printf ("\nUsage :\n %s [options] <file>\n\nOptions:\n", progname) ;
|
||||
|
||||
puts (
|
||||
" --all Print all metadata.\n"
|
||||
) ;
|
||||
|
||||
puts (
|
||||
" --bext-description Print the 'bext' description.\n"
|
||||
" --bext-originator Print the 'bext; originator info.\n"
|
||||
" --bext-originator Print the 'bext' originator info.\n"
|
||||
" --bext-orig-ref Print the 'bext' origination reference.\n"
|
||||
" --bext-umid Print the 'bext' UMID.\n"
|
||||
" --bext-orig-date Print the 'bext' origination date.\n"
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
** Copyright (C) 2008-2012 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
** Copyright (C) 2008-2014 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
** Copyright (C) 2008-2010 George Blood Audio
|
||||
**
|
||||
** All rights reserved.
|
||||
@ -66,7 +66,7 @@ main (int argc, char *argv [])
|
||||
if (argc < 3 || strcmp (argv [1], "--help") == 0 || strcmp (argv [1], "-h") == 0)
|
||||
usage_exit (progname, 0) ;
|
||||
|
||||
/* Clear set all fields of the struct to zero bytes. */
|
||||
/* Set all fields of the struct to zero bytes. */
|
||||
memset (&info, 0, sizeof (info)) ;
|
||||
|
||||
/* Get the time in case we need it later. */
|
||||
@ -208,7 +208,7 @@ usage_exit (const char *progname, int exit_code)
|
||||
" --bext-orig-date Set the 'bext' origination date.\n"
|
||||
" --bext-orig-time Set the 'bext' origination time.\n"
|
||||
" --bext-coding-hist Set the 'bext' coding history.\n"
|
||||
" --bext-time-raf Set the 'bext' Time ref.\n"
|
||||
" --bext-time-ref Set the 'bext' Time ref.\n"
|
||||
"\n"
|
||||
" --str-comment Set the metadata comment.\n"
|
||||
" --str-title Set the metadata title.\n"
|
||||
|
Loading…
Reference in New Issue
Block a user