diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 8c754537ba67ba280ab36f1eed0786ffb379ebf6..b96307c81348029d0fe3f52bd03e57b8f8fac839 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -37,8 +37,8 @@ extern "C" {
 #define AV_STRINGIFY(s)         AV_TOSTRING(s)
 #define AV_TOSTRING(s) #s
 
-#define LIBAVCODEC_VERSION_INT  ((51<<16)+(40<<8)+3)
-#define LIBAVCODEC_VERSION      51.40.3
+#define LIBAVCODEC_VERSION_INT  ((51<<16)+(40<<8)+4)
+#define LIBAVCODEC_VERSION      51.40.4
 #define LIBAVCODEC_BUILD        LIBAVCODEC_VERSION_INT
 
 #define LIBAVCODEC_IDENT        "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION)