diff --git a/libavcodec/cook.c b/libavcodec/cook.c
index 8553dfceeee35c06cc2f6cb3ed818a0bdd21a65f..be57bece82fd6aab46c7e9150c461f34aa361e17 100644
--- a/libavcodec/cook.c
+++ b/libavcodec/cook.c
@@ -353,9 +353,7 @@ static void decode_gain_info(GetBitContext *gb, int *gaininfo)
 
 static void decode_envelope(COOKContext *q, int* quant_index_table) {
     int i,j, vlc_index;
-    int bitbias;
 
-    bitbias = get_bits_count(&q->gb);
     quant_index_table[0]= get_bits(&q->gb,6) - 6;       //This is used later in categorize
 
     for (i=1 ; i < q->total_subbands ; i++){