Merge "Fix "Dereference of null pointer" compiler warning."
am: d2862051d0

Change-Id: Icb470344054623197d204d8666941e5d58ea0c06
diff --git a/media/libstagefright/codecs/aacenc/src/dyn_bits.c b/media/libstagefright/codecs/aacenc/src/dyn_bits.c
index 4d763d0..f0f7cbc 100644
--- a/media/libstagefright/codecs/aacenc/src/dyn_bits.c
+++ b/media/libstagefright/codecs/aacenc/src/dyn_bits.c
@@ -20,11 +20,15 @@
 
 *******************************************************************************/
 
+#include "android/log.h"
+
 #include "aac_rom.h"
 #include "dyn_bits.h"
 #include "bit_cnt.h"
 #include "psy_const.h"
 
+#define LOG_TAG "NoiselessCoder"
+
 /*****************************************************************************
 *
 * function name: buildBitLookUp
@@ -296,6 +300,9 @@
     case SHORT_WINDOW:
       sideInfoTab = sideInfoTabShort;
       break;
+    default:
+      ALOGE("invalid blockType: %d", blockType);
+      return;
   }