diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 07fa7f1e5aa4ef1687dc2c6ae31169b900b585e9..8aaedeb31915f856d63b24ece53ca833c7673e04 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -12,7 +12,7 @@ extern "C" {
 #define LIBAVFORMAT_IDENT	"FFmpeg" FFMPEG_VERSION "b" AV_STRINGIFY(LIBAVFORMAT_BUILD)
 
 #include <time.h>
-
+#include <stdio.h>  /* FILE */
 #include "avcodec.h"
 
 #include "avio.h"