diff --git a/libavformat/utils.c b/libavformat/utils.c
index 9bee5cd7e80efc4675b9d8867982f23ac48602aa..e2c090258c095f885c60f608684c961403f91020 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -21,7 +21,7 @@
 #include "avformat.h"
 #include "internal.h"
 #include "libavcodec/opt.h"
-#include "libavcodec/metadata.h"
+#include "metadata.h"
 #include "libavutil/avstring.h"
 #include "riff.h"
 #include <sys/time.h>