diff --git a/libavcodec/cabac.h b/libavcodec/cabac.h
index 2e4ec70831..e797741577 100644
--- a/libavcodec/cabac.h
+++ b/libavcodec/cabac.h
@@ -24,7 +24,7 @@
  */
 
 
-#undef NDEBUG
+//#undef NDEBUG
 #include <assert.h>
 
 #define CABAC_BITS 8
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 15fdfcfc3a..f49ed76794 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -33,7 +33,7 @@
 
 #include "cabac.h"
 
-#undef NDEBUG
+//#undef NDEBUG
 #include <assert.h>
 
 #define interlaced_dct interlaced_dct_is_a_bad_name