Merge "Fix "Dereference of null pointer" compiler warning." am: d2862051d0
am: bf8ecdce4c
Change-Id: Id09581405df786ae008c3b4d88299b3913228312
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;
}