mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-23 09:59:54 +00:00
src/ogg.c : Fix compiler warning when using gcc-4.5.0.
This commit is contained in:
parent
7b91101aa1
commit
1531586a8e
@ -6,6 +6,9 @@
|
||||
* src/flac.c
|
||||
Add 88200 to the list of supported sample rates.
|
||||
|
||||
* src/ogg.c
|
||||
Fix compiler warning when using gcc-4.5.0.
|
||||
|
||||
2009-09-16 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
|
||||
|
||||
* src/caf.c
|
||||
|
@ -641,7 +641,7 @@ ogg_read_sample (SF_PRIVATE *psf, void *ptr, sf_count_t lens, convert_func *tran
|
||||
{
|
||||
VORBIS_PRIVATE *vdata = psf->codec_data ;
|
||||
OGG_PRIVATE *odata = psf->container_data ;
|
||||
int len, samples, i = 0 ;
|
||||
int result, len, samples, i = 0 ;
|
||||
float **pcm ;
|
||||
|
||||
len = lens / psf->sf.channels ;
|
||||
@ -660,7 +660,7 @@ ogg_read_sample (SF_PRIVATE *psf, void *ptr, sf_count_t lens, convert_func *tran
|
||||
while (len > 0 && !odata->eos)
|
||||
{
|
||||
while (len > 0 && !odata->eos)
|
||||
{ int result = ogg_sync_pageout (&odata->oy, &odata->og) ;
|
||||
{ result = ogg_sync_pageout (&odata->oy, &odata->og) ;
|
||||
if (result == 0) break ; /* need more data */
|
||||
if (result < 0)
|
||||
{ /* missing or corrupt data at this page position */
|
||||
|
Loading…
Reference in New Issue
Block a user