aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/decode.c4
-rw-r--r--src/pcm_utils.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/decode.c b/src/decode.c
index 0c4503872..c5ad1c817 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -408,10 +408,10 @@ static void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer *
/** cross fading enabled for the current song? 0=must check;
1=enabled; -1=disabled */
int doCrossFade = 0;
- unsigned int crossFadeChunks;
+ unsigned int crossFadeChunks = 0;
/** the position of the next cross-faded chunk in the next
song */
- int nextChunk;
+ int nextChunk = 0;
int decodeWaitedOn = 0;
static const char silence[CHUNK_SIZE];
double sizeToTime = 0.0;
diff --git a/src/pcm_utils.c b/src/pcm_utils.c
index 9a443962d..628c524d2 100644
--- a/src/pcm_utils.c
+++ b/src/pcm_utils.c
@@ -394,7 +394,7 @@ size_t pcm_convertAudioFormat(AudioFormat * inFormat, const char *inBuffer,
char *outBuffer, ConvState *convState)
{
const char *buf;
- size_t len;
+ size_t len = 0;
size_t outSize = pcm_sizeOfConvBuffer(inFormat, inSize, outFormat);
assert(outFormat->bits == 16);