Commit 197cea0c authored by Ralph Giles's avatar Ralph Giles

Fix flac unitialized variable warnings.

parent b8fa89d6
...@@ -19,6 +19,9 @@ AM_MAINTAINER_MODE([enable]) ...@@ -19,6 +19,9 @@ AM_MAINTAINER_MODE([enable])
AC_USE_SYSTEM_EXTENSIONS AC_USE_SYSTEM_EXTENSIONS
dnl enable silent rules on automake 1.11 and later
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
dnl -------------------------------------------------- dnl --------------------------------------------------
dnl Check for programs dnl Check for programs
dnl -------------------------------------------------- dnl --------------------------------------------------
......
...@@ -146,8 +146,6 @@ decoder_t* flac_init (data_source_t *source, ogg123_options_t *ogg123_opts, ...@@ -146,8 +146,6 @@ decoder_t* flac_init (data_source_t *source, ogg123_options_t *ogg123_opts,
{ {
decoder_t *decoder; decoder_t *decoder;
flac_private_t *private; flac_private_t *private;
FLAC__bool ret;
/* Allocate data source structures */ /* Allocate data source structures */
decoder = malloc(sizeof(decoder_t)); decoder = malloc(sizeof(decoder_t));
...@@ -485,9 +483,10 @@ FLAC__StreamDecoderWriteStatus write_callback(const FLAC__StreamDecoder *decoder ...@@ -485,9 +483,10 @@ FLAC__StreamDecoderWriteStatus write_callback(const FLAC__StreamDecoder *decoder
int samples = frame->header.blocksize; int samples = frame->header.blocksize;
int channels = frame->header.channels; int channels = frame->header.channels;
int bits_per_sample = priv->bits_per_sample = frame->header.bits_per_sample;
int i, j; int i, j;
priv->bits_per_sample = frame->header.bits_per_sample;
resize_buffer(priv, channels, samples); resize_buffer(priv, channels, samples);
for (i = 0; i < channels; i++) for (i = 0; i < channels; i++)
...@@ -497,7 +496,6 @@ FLAC__StreamDecoderWriteStatus write_callback(const FLAC__StreamDecoder *decoder ...@@ -497,7 +496,6 @@ FLAC__StreamDecoderWriteStatus write_callback(const FLAC__StreamDecoder *decoder
priv->buf_start = 0; priv->buf_start = 0;
priv->buf_fill = samples; priv->buf_fill = samples;
priv->samples_decoded += samples; priv->samples_decoded += samples;
return FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE; return FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE;
......
...@@ -317,8 +317,6 @@ void easyflac_error_callback(const EasyFLAC__StreamDecoder *decoder, FLAC__Strea ...@@ -317,8 +317,6 @@ void easyflac_error_callback(const EasyFLAC__StreamDecoder *decoder, FLAC__Strea
void error_callback(const FLAC__StreamDecoder *decoder, FLAC__StreamDecoderErrorStatus status, void *client_data) void error_callback(const FLAC__StreamDecoder *decoder, FLAC__StreamDecoderErrorStatus status, void *client_data)
#endif #endif
{ {
flacfile *flac = (flacfile *) client_data;
} }
#if !NEED_EASYFLAC #if !NEED_EASYFLAC
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment