music_flac.c
changeset 436 8ec227cabdd4
parent 409 2ba29d53be77
child 470 5cebd6c5be2d
     1.1 --- a/music_flac.c	Sat Oct 10 09:58:24 2009 +0000
     1.2 +++ b/music_flac.c	Sat Oct 10 10:23:03 2009 +0000
     1.3 @@ -189,6 +189,9 @@
     1.4  	}
     1.5  
     1.6  	for (i = 0; i < frame->header.blocksize; i++) {
     1.7 +		FLAC__int16 i16;
     1.8 +		FLAC__uint16 ui16;
     1.9 +
    1.10  		// make sure we still have at least two bytes that can be read (one for
    1.11  		// each channel)
    1.12  		if (data->flac_data.max_to_read >= 4) {
    1.13 @@ -206,9 +209,6 @@
    1.14  				}
    1.15  			}
    1.16  
    1.17 -			FLAC__int16 i16;
    1.18 -			FLAC__uint16 ui16;
    1.19 -
    1.20  			i16 = (FLAC__int16)buffer[0][i];
    1.21  			ui16 = (FLAC__uint16)i16;
    1.22  
    1.23 @@ -249,9 +249,6 @@
    1.24  				}
    1.25  			}
    1.26  
    1.27 -			FLAC__int16 i16;
    1.28 -			FLAC__uint16 ui16;
    1.29 -
    1.30  			i16 = (FLAC__int16)buffer[0][i];
    1.31  			ui16 = (FLAC__uint16)i16;
    1.32