mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-23 09:59:54 +00:00
sndfile-convert: Close input file on output format error
This commit is contained in:
parent
df55170ce4
commit
25824cb914
@ -329,7 +329,9 @@ main (int argc, char * argv [])
|
||||
} ;
|
||||
|
||||
if (sf_format_check (&sfinfo) == 0)
|
||||
{ sf_close (infile) ;
|
||||
report_format_error_exit (argv [0], &sfinfo) ;
|
||||
} ;
|
||||
|
||||
if ((sfinfo.format & SF_FORMAT_SUBMASK) == SF_FORMAT_GSM610 && sfinfo.samplerate != 8000)
|
||||
{ printf (
|
||||
|
Loading…
Reference in New Issue
Block a user