From 552273cdcccc85115a84fb068bff9ceac1adeafa Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Wed, 28 Feb 2007 16:01:08 +0000 Subject: [PATCH] ext/lame/gstlame.c: Initialise the variables so gcc doesn't complain about possibly uninitialised uses, even though t... Original commit message from CVS: * ext/lame/gstlame.c: Initialise the variables so gcc doesn't complain about possibly uninitialised uses, even though they can't actually happen. --- ChangeLog | 6 ++++++ ext/lame/gstlame.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 360f531..45b38b0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-02-28 Jan Schmidt + + * ext/lame/gstlame.c: + Initialise the variables so gcc doesn't complain about possibly + uninitialised uses, even though they can't actually happen. + 2007-02-28 Wim Taymans * gst/dvdlpcmdec/gstdvdlpcmdec.c: (gst_dvdlpcm_reset), diff --git a/ext/lame/gstlame.c b/ext/lame/gstlame.c index 40e8648..8542e28 100644 --- a/ext/lame/gstlame.c +++ b/ext/lame/gstlame.c @@ -656,8 +656,8 @@ init_error: #define CHECK_AND_FIXUP_BITRATE(obj,param,rate) \ G_STMT_START { \ gint ___rate = rate; \ - gint maxrate; \ - gint multiplier; \ + gint maxrate = 320; \ + gint multiplier = 64; \ if (rate <= 64) { \ maxrate = 64; multiplier = 8; \ if ((rate % 8) != 0) ___rate = GST_ROUND_UP_8 (rate); \ -- 2.7.4