aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/inputPlugins/flac_plugin.c6
-rw-r--r--src/inputPlugins/oggflac_plugin.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/inputPlugins/flac_plugin.c b/src/inputPlugins/flac_plugin.c
index f929ef619..a285efcf0 100644
--- a/src/inputPlugins/flac_plugin.c
+++ b/src/inputPlugins/flac_plugin.c
@@ -215,7 +215,7 @@ static FLAC__StreamDecoderWriteStatus flacWrite(const flac_decoder *dec,
FLAC__uint32 samples = frame->header.blocksize;
FLAC__uint16 u16;
unsigned char *uc;
- int c_samp, c_chan, d_samp;
+ int c_samp, c_chan;
int i;
float timeChange;
FLAC__uint64 newPosition = 0;
@@ -231,9 +231,9 @@ static FLAC__StreamDecoderWriteStatus flacWrite(const flac_decoder *dec,
}
data->position = newPosition;
- for (c_samp = d_samp = 0; c_samp < frame->header.blocksize; c_samp++) {
+ for (c_samp = 0; c_samp < frame->header.blocksize; c_samp++) {
for (c_chan = 0; c_chan < frame->header.channels;
- c_chan++, d_samp++) {
+ c_chan++) {
u16 = buf[c_chan][c_samp];
uc = (unsigned char *)&u16;
for (i = 0; i < (data->dc->audioFormat.bits / 8); i++) {
diff --git a/src/inputPlugins/oggflac_plugin.c b/src/inputPlugins/oggflac_plugin.c
index 15536ab9a..1bbb10e9a 100644
--- a/src/inputPlugins/oggflac_plugin.c
+++ b/src/inputPlugins/oggflac_plugin.c
@@ -169,7 +169,7 @@ static FLAC__StreamDecoderWriteStatus oggflacWrite(const
FLAC__uint32 samples = frame->header.blocksize;
FLAC__uint16 u16;
unsigned char *uc;
- int c_samp, c_chan, d_samp;
+ int c_samp, c_chan;
int i;
float timeChange;
@@ -188,9 +188,9 @@ static FLAC__StreamDecoderWriteStatus oggflacWrite(const
/((float)samples * 1000)) + 0.5;
*/
- for (c_samp = d_samp = 0; c_samp < frame->header.blocksize; c_samp++) {
+ for (c_samp = 0; c_samp < frame->header.blocksize; c_samp++) {
for (c_chan = 0; c_chan < frame->header.channels;
- c_chan++, d_samp++) {
+ c_chan++) {
u16 = buf[c_chan][c_samp];
uc = (unsigned char *)&u16;
for (i = 0; i < (data->dc->audioFormat.bits / 8); i++) {