src/ogg.c : Fix compiler warning when using gcc-4.5.0.

This commit is contained in:
Erik de Castro Lopo 2009-09-19 08:22:57 +10:00
parent 7b91101aa1
commit 1531586a8e
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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 */