ext/lame/gstlame.c: Initialise the variables so gcc doesn't complain about possibly...
authorJan Schmidt <thaytan@mad.scientist.com>
Wed, 28 Feb 2007 16:01:08 +0000 (16:01 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Wed, 28 Feb 2007 16:01:08 +0000 (16:01 +0000)
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.

ext/lame/gstlame.c

index 40e8648..8542e28 100644 (file)
@@ -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);               \