diff --git a/libavcodec/h264.h b/libavcodec/h264.h
index b94f06b6d1402159b15e3f09c1dd94fded608e84..8af991b4c792c76096f4a5b743f7ff0cde1adddd 100644
--- a/libavcodec/h264.h
+++ b/libavcodec/h264.h
@@ -66,7 +66,7 @@
  * The maximum number of slices supported by the decoder.
  * must be a power of 2
  */
-#define MAX_SLICES 16
+#define MAX_SLICES 32
 
 #ifdef ALLOW_INTERLACE
 #define MB_MBAFF(h)    (h)->mb_mbaff