mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-23 09:59:54 +00:00
tests/write_read_test.tpl: Fix valgrind warning
This commit is contained in:
parent
3698df00ea
commit
aaed5ac8f7
@ -1,6 +1,6 @@
|
|||||||
[+ AutoGen5 template c +]
|
[+ AutoGen5 template c +]
|
||||||
/*
|
/*
|
||||||
** Copyright (C) 1999-2014 Erik de Castro Lopo <erikd@mega-nerd.com>
|
** Copyright (C) 1999-2016 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||||
**
|
**
|
||||||
** This program is free software; you can redistribute it and/or modify
|
** This program is free software; you can redistribute it and/or modify
|
||||||
** it under the terms of the GNU General Public License as published by
|
** it under the terms of the GNU General Public License as published by
|
||||||
@ -1011,6 +1011,7 @@ empty_file_test (const char *filename, int format)
|
|||||||
info.samplerate = 48000 ;
|
info.samplerate = 48000 ;
|
||||||
info.channels = 2 ;
|
info.channels = 2 ;
|
||||||
info.format = format ;
|
info.format = format ;
|
||||||
|
info.frames = 0 ;
|
||||||
|
|
||||||
if (sf_format_check (&info) == SF_FALSE)
|
if (sf_format_check (&info) == SF_FALSE)
|
||||||
{ info.channels = 1 ;
|
{ info.channels = 1 ;
|
||||||
|
Loading…
Reference in New Issue
Block a user