aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/mpcdec_decoder_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-08-23 17:58:56 +0200
committerMax Kellermann <max@duempel.org>2011-08-23 17:58:56 +0200
commitd3b15f8fda6ae8baa5e02badbb36b424862aee61 (patch)
treedd5c66b7079f414388cfdfa9e282f4705f51cda7 /src/decoder/mpcdec_decoder_plugin.c
parent838f7cd210dbd3f071d48d54c168c123c3d20c58 (diff)
downloadmpd-d3b15f8fda6ae8baa5e02badbb36b424862aee61.tar.gz
mpd-d3b15f8fda6ae8baa5e02badbb36b424862aee61.tar.xz
mpd-d3b15f8fda6ae8baa5e02badbb36b424862aee61.zip
decoder/mpcdec: fix gcc warning
Move the variable "vbr_update_acc" into the #ifdef block.
Diffstat (limited to '')
-rw-r--r--src/decoder/mpcdec_decoder_plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder/mpcdec_decoder_plugin.c b/src/decoder/mpcdec_decoder_plugin.c
index 4df8dd218..eaf470a40 100644
--- a/src/decoder/mpcdec_decoder_plugin.c
+++ b/src/decoder/mpcdec_decoder_plugin.c
@@ -153,7 +153,6 @@ mpcdec_decode(struct decoder *mpd_decoder, struct input_stream *is)
mpc_uint32_t ret;
int32_t chunk[G_N_ELEMENTS(sample_buffer)];
long bit_rate = 0;
- mpc_uint32_t vbr_update_acc;
mpc_uint32_t vbr_update_bits;
enum decoder_command cmd = DECODE_COMMAND_NONE;
@@ -243,10 +242,11 @@ mpcdec_decode(struct decoder *mpd_decoder, struct input_stream *is)
decoder_seek_error(mpd_decoder);
}
- vbr_update_acc = 0;
vbr_update_bits = 0;
#ifdef MPC_IS_OLD_API
+ mpc_uint32_t vbr_update_acc = 0;
+
ret = mpc_decoder_decode(&decoder, sample_buffer,
&vbr_update_acc, &vbr_update_bits);
if (ret == 0 || ret == (mpc_uint32_t)-1)