diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
index 10ba6f376152a60884f4c4ae8a87d9589785f4ec..7dadec080fd1f2b2705314a447ed2897c8e798f1 100644
--- a/libavformat/mxfenc.c
+++ b/libavformat/mxfenc.c
@@ -39,6 +39,7 @@
 #include "libavcodec/bytestream.h"
 #include "audiointerleave.h"
 #include "avformat.h"
+#include "internal.h"
 #include "mxf.h"
 
 static const int NTSC_samples_per_frame[] = { 1602, 1601, 1602, 1601, 1602, 0 };