summaryrefslogtreecommitdiff
path: root/apps/plugins/mp3_encoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/mp3_encoder.c')
-rw-r--r--apps/plugins/mp3_encoder.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/mp3_encoder.c b/apps/plugins/mp3_encoder.c
index 4094b4c34f..11d001cd6a 100644
--- a/apps/plugins/mp3_encoder.c
+++ b/apps/plugins/mp3_encoder.c
@@ -871,8 +871,10 @@ int Read32BitsLowHigh(int fd)
871int wave_open(void) 871int wave_open(void)
872{ 872{
873 unsigned short wFormatTag; 873 unsigned short wFormatTag;
874 /* rockbox: comment 'set but unused" variable
874 unsigned long dAvgBytesPerSec; 875 unsigned long dAvgBytesPerSec;
875 unsigned short wBlockAlign; 876 unsigned short wBlockAlign;
877 */
876 unsigned short bits_per_samp; 878 unsigned short bits_per_samp;
877 long header_size; 879 long header_size;
878 880
@@ -889,8 +891,8 @@ int wave_open(void)
889 891
890 cfg.channels = Read16BitsLowHigh(wavfile); 892 cfg.channels = Read16BitsLowHigh(wavfile);
891 cfg.samplerate = Read32BitsLowHigh(wavfile); 893 cfg.samplerate = Read32BitsLowHigh(wavfile);
892 dAvgBytesPerSec = Read32BitsLowHigh(wavfile); 894 /*dAvgBytesPerSec*/ Read32BitsLowHigh(wavfile);
893 wBlockAlign = Read16BitsLowHigh(wavfile); 895 /*wBlockAlign */ Read16BitsLowHigh(wavfile);
894 bits_per_samp = Read16BitsLowHigh(wavfile); 896 bits_per_samp = Read16BitsLowHigh(wavfile);
895 897
896 if(wFormatTag != 0x0001) return -5; /* linear PCM required */ 898 if(wFormatTag != 0x0001) return -5; /* linear PCM required */