diff --git a/doc/APIchanges b/doc/APIchanges
index d00416c9c6cb772feb40e14f06aa466a858b1505..b6b78b523780499f5b8e39d65031e3b094ab49d7 100644
--- a/doc/APIchanges
+++ b/doc/APIchanges
@@ -15,6 +15,10 @@ libavutil:     2011-04-18
 
 API changes, most recent first:
 
+2012-05-24 - xxxxxxx - lavu 51.54.100
+  Move AVPALETTE_SIZE and AVPALETTE_COUNT macros from
+  libavcodec/avcodec.h to libavutil/pixfmt.h.
+
 2012-05-07 - xxxxxxx - lavf 54.5.100
   Add av_guess_sample_aspect_ratio() function.
 
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 9dfb64b7203cee5d603dfd020f14ada19e6e82bc..96ca401c2faa352a7511a62c5563c2bdeaf1c491 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -3130,9 +3130,6 @@ typedef struct AVPicture {
  * @}
  */
 
-#define AVPALETTE_SIZE 1024
-#define AVPALETTE_COUNT 256
-
 enum AVSubtitleType {
     SUBTITLE_NONE,
 
diff --git a/libavutil/avutil.h b/libavutil/avutil.h
index 130a4dac7f7ea9617e4ba5bc50ebf160ea313a6a..ee8b0713832b40e09f7e918b05d8e9dd1980def1 100644
--- a/libavutil/avutil.h
+++ b/libavutil/avutil.h
@@ -153,7 +153,7 @@
  */
 
 #define LIBAVUTIL_VERSION_MAJOR 51
-#define LIBAVUTIL_VERSION_MINOR 53
+#define LIBAVUTIL_VERSION_MINOR 54
 #define LIBAVUTIL_VERSION_MICRO 100
 
 #define LIBAVUTIL_VERSION_INT   AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h
index 1e81a2ae37858b797a536af70227fb8a24b19a6a..820cd3f190d92b93661178fdd2248c7382c78802 100644
--- a/libavutil/pixfmt.h
+++ b/libavutil/pixfmt.h
@@ -29,6 +29,9 @@
 
 #include "libavutil/avconfig.h"
 
+#define AVPALETTE_SIZE 1024
+#define AVPALETTE_COUNT 256
+
 /**
  * Pixel format.
  *